aws-ia / terraform-aws-control_tower_account_factory

AWS Control Tower Account Factory
Apache License 2.0
652 stars 454 forks source link

Create Terraform workspace in specific Terraform Cloud project #447

Open elevaso-arau opened 8 months ago

elevaso-arau commented 8 months ago

Describe the outcome you'd like

When using Terraform Cloud as the backend, workspaces are created in the "Default Project" of the organization. For enterprises with multiple projects, the workspaces for AFT could exist in a dedicated project with limited user access for security purposes.

Is your feature request related to a problem you are currently experiencing? If so, please describe.

The Terraform token used for running the pipelines does not have access to create workspaces in the Default project. Currently we must manually create the Terraform workspaces in the desired project which becomes problematic when adding new accounts since they require dedicated workspaces for global and account customizations.

Additional context

Add any other context or screenshots about the feature request here.

wiltangg commented 8 months ago

Hi @elevaso-arau, thank you for the improvement idea. I have created a backlog item for this feature request.

elevaso-arau commented 8 months ago

Hi @elevaso-arau, thank you for the improvement idea. I have created a backlog item for this feature request.

If it helps, I've already written and tested the code in my forked repo.

https://github.com/Elevaso/terraform-aws-control_tower_account_factory