Changing terraform AFT distribution

0

Do's anybody know is it possible to change terraform AFT "oss" distribution to terraform cloud?

With terraform_ distribution = "oss" it keeps track all account requests and account state histori in AFT AWS account but if i change the distribution system from "oss" to "tfc" then all data will kept secured in terraform cloud. So how i can migrate Account request, AFT customizations, ,Account customizations and Global customizations tf state files to tfc workspaces?

-Juha

JuhaW
已提問 1 個月前檢視次數 120 次
1 個回答
1

AFT migration from Terraform Open Source to Terraform cloud.  The general process we're going to follow:

  1. Use any scripts to migrate the state files for account request and customizations from S3 to account request workspace and the customization workspaces of Terraform Cloud. (Or running a “terraform init” with an updated backend would migrate the state for you.)
  2. Reconfigure AFT to Terraform Cloud.
  3. Update the API helper scripts to be compatible with TFC if necessary. (many of our API helper scripts are TFC dependent)
  4. Validate the change by invoking customizations for a single account.

When you select Terraform Cloud as your distribution, provide the following input parameters:

terraform_distribution = "tfc"

terraform_token – This parameter contains the value of the Terraform Cloud token. AFT marks the as sensitive and stores the value as a secure string in the SSM parameter store in the AFT management account. We recommend that you periodically rotate the value of the Terraform token according to your company's security policies and compliance guidelines. The Terraform token should be a User or Team level API token. Organization tokens are not supported.

terraform_org_name – This parameter contains the name of your Terraform Cloud organization.

Note: Multiple AFT deployments in a single Terraform Cloud organization is not supported.

[+]https://docs.aws.amazon.com/controltower/latest/userguide/version-supported.html

AWS
merinkj
已回答 1 天前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南