This guide helps in migration from the old terraform modules to the new one.
- When upgrading terraform version for platform features ensure that you are running on the latest version
0.3.x
and the platform features is upgraded to the newer 0.4.x version. - When the
platform_role_enable_override
is set tofalse
, then a iam role wil be created with a unique prefix - The following output variables have been replaced with the new ones;
platform_user_bucket_name
toplatform_bucket_name
platform_user_bucket_arn
toplatform_bucket_arn
platform_user_ecr_url
toplatform_ecr_url
- The following outputs have been removed;
platform_iam_role_name
- The following variables have been removed;
platform_feature_enabled
- When upgrading terraform version for platform features ensure that you are running on version
0.2.x
and the platform features is upgraded to the newer 0.3.x version. - Update the following variables;
feature_secrets_enabled
tofeature_parameter_store_enabled
- Run
terraform state mv old_resource_name new_resource_name
to move the resources to the new name. If you are usingterragrunt
runterragrunt state mv
. Run the following commands to update state;
terraform state mv aws_iam_role_policy_attachment.truefoundry_platform_user_ecr_policy_attachment aws_iam_role_policy_attachment.truefoundry_platform_ecr_policy_attachment
terraform state mv aws_iam_role_policy_attachment.truefoundry_platform_user_ssm_policy_attachment aws_iam_role_policy_attachment.truefoundry_platform_parameter_store_policy_attachment
terraform state mv aws_iam_role_policy_attachment.truefoundry_platform_user_cluster_integration_policy_attachment aws_iam_role_policy_attachment.truefoundry_platform_cluster_integration_policy_attachment
terraform state mv aws_iam_role_policy_attachment.truefoundry_platform_user_s3_policy_attachment aws_iam_role_policy_attachment.truefoundry_platform_s3_policy_attachment
terraform state mv aws_iam_policy.truefoundry_platform_feature_user_ecr_policy aws_iam_policy.truefoundry_platform_feature_ecr_policy
terraform state mv aws_iam_policy.truefoundry_platform_feature_user_ssm_policy aws_iam_policy.truefoundry_platform_feature_parameter_store_policy
terraform state mv aws_iam_policy.truefoundry_platform_feature_user_s3_policy aws_iam_policy.truefoundry_platform_feature_s3_policy
- Run
terraform plan
to see the changes that will be applied. - Run
terraform apply
to apply the changes.
- When upgrading terraform version for platform features ensure that you are running on version
0.2.x
and the platform features is upgraded to the newer 0.2.2 version. - Update the following variables;
feature_cloud_integration_enabled
tofeature_cluster_integration_enabled
- Run
terraform state mv old_resource_name new_resource_name
to move the resources to the new name. Run the following commands to update state;
terraform state mv aws_iam_policy.truefoundry_platform_feature_cloud_integration_policy aws_iam_policy.truefoundry_platform_feature_cluster_integration_policy
terraform state mv aws_iam_role_policy_attachment.truefoundry_platform_user_cloud_integration_policy_attachment aws_iam_role_policy_attachment.truefoundry_platform_user_cluster_integration_policy_attachment
- Run
terraform plan
to see the changes that will be applied. - Run
terraform apply
to apply the changes.