aws-ia / terraform-aws-control_tower_account_factory

AWS Control Tower Account Factory
Apache License 2.0
604 stars 386 forks source link

Respective workspaces are not created in TFC after calling AFT module #453

Closed bozzerreaneaux closed 2 months ago

bozzerreaneaux commented 2 months ago

Terraform Version & Prov: [v1.8.0] AFT Version: (Can be found in the AFT Management Account in the SSM Parameter /aft/config/aft/version) [v.1.12.1]

Bug Description A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: Calling the module: image I am getting a successful 'plan' and 'apply' with 325 resources created however the corresponding workspaces in TFC are not created. No errors in the raw log either. The terraform token is being correctly passed from a workspace variable in TFC and saved into the SSM parameter (see below). The associated user has permissions to create workspaces in the specified TFC organization

Expected behavior Workspaces being created

Additional context image

image

bozzerreaneaux commented 2 months ago

Or perhaps I misunderstood some docs: are the relevant CodeCommit associated workspaces being created in TFC when the AFT repos get actually populated post deployment --> hence respective CodePipelines being triggered and remote state saved into respective workspace in TFC?