Skip to content

Latest commit

 

History

History
44 lines (40 loc) · 3.6 KB

File metadata and controls

44 lines (40 loc) · 3.6 KB

AWS Platform Features Upgrade Guide

This guide helps in migration from the old terraform modules to the new one.

Upgrade guide to AWS platform features module from 0.3.0 to 0.4.0

  1. 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.
  2. When the platform_role_enable_override is set to false, then a iam role wil be created with a unique prefix
  3. The following output variables have been replaced with the new ones;
    • platform_user_bucket_name to platform_bucket_name
    • platform_user_bucket_arn to platform_bucket_arn
    • platform_user_ecr_url to platform_ecr_url
  4. The following outputs have been removed;
    • platform_iam_role_name
  5. The following variables have been removed;
    • platform_feature_enabled

Upgrade guide to AWS platform features module from 0.2.2 to 0.3.0

  1. 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.
  2. Update the following variables;
    • feature_secrets_enabled to feature_parameter_store_enabled
  3. Run terraform state mv old_resource_name new_resource_name to move the resources to the new name. If you are using terragrunt run terragrunt 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
  1. Run terraform plan to see the changes that will be applied.
  2. Run terraform apply to apply the changes.

Updgrade guide to AWS platform features module from 0.2.1 to 0.2.2

  1. 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.
  2. Update the following variables;
    • feature_cloud_integration_enabled to feature_cluster_integration_enabled
  3. 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
  1. Run terraform plan to see the changes that will be applied.
  2. Run terraform apply to apply the changes.