aws-ia / terraform-aws-control_tower_account_factory

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

Account-Customizations pipeline running out of resources for terraform apply #474

Open bartoszbryk opened 5 days ago

bartoszbryk commented 5 days ago

Terraform Version & Prov:

AFT Version: 1.11.1

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

terraform version

 1.3.7

terraform providers

Provider aws v5.56.0

Bug Description We have large number of resources deployed as part of one pipeline, that utilises one state and deploys them to one account. This causes the AFT pipeline runs to fail due to lack of resources. The errors we are observing are: The plugin.(*GRPCProvider).ValidateResourceConfig request was cancelled. Error: Request cancelled We would like to split the state of customizations for this particular accounts to separate state file, that's being applied in separate flow. Is this possible in the current AFT implementation? What would be the steps to achieve that

To Reproduce Steps to reproduce the behavior:

  1. Try to create large number of resources using terraform via AFT Account Customizations (>2000)
  2. The terraform in the pipeline will fail due to lack of resources or timeout

Expected behavior We would like to be able to run multiple account-customizations for the same account