aws-ia / terraform-aws-control_tower_account_factory

AWS Control Tower Account Factory
Apache License 2.0
646 stars 448 forks source link

Create two separate AFT environment - Dev & Prod in same TFE org #506

Open raju7258 opened 3 weeks ago

raju7258 commented 3 weeks ago

Terraform Version & Prov:

AFT Version: 1.13.2

Terraform Version & Provider Versions Please provide the outputs of terraform version and terraform providers from within your AFT environment

terraform version

1.5.7

terraform providers

{Replace me}

Bug Description I am having issues when creating two separate AFT environment for Dev & Prod in the same TFE org

To Reproduce I am having issues when creating two separate AFT environment for Dev & Prod in the same TFE org. When I run ct-aft-account-provisioning-customizations on both dev & prod it runs in the same TFE workspace with the name 'ct-aft-account-provisioning-customizations' and I believe I will encounter the same error for the pipeline 'ct-aft-account-request'. Can someone give me a solution to this problem?

hsdp-smulford commented 2 weeks ago

If you dig around the buildspecs, you'll see some places where the workspace names are hard-coded, and others where they are not hard-coded.

Since this feels like a timely issue, you may want to: 1) Open up an enhancement with AWS to prioritize this fix, then 2) fork and update the workspace names with variables while you wait for a patch.

Just my 2 cents :)