aws-ia / terraform-aws-control_tower_account_factory

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

Lambda's TooManyRequestsException when run "aft-invoke-customizations" #337

Closed vaspoz closed 1 year ago

vaspoz commented 1 year ago

AFT Version: 1.9.2

Terraform Version & Provider Versions

Terraform v1.4.2
on windows_386
+ provider registry.terraform.io/hashicorp/aws v4.61.0

Bug Description The State machine throws TooManyRequestsException when starting with more than 10 accounts (maybe even less, didn't check what's the threashold, now I'm running in chunks of 5)

To Reproduce Steps to reproduce the behavior:

  1. Run the state machine with input:
    {
    "include": [
    {
      "type": "all"
    }
    ]
    }
  2. Make sure that you have > 10 accounts.
  3. The state machine fails in that stage: image

If you open invoked aft-account-provisioning-framework state machine, you'll see this error: image

Expected behavior It's either should be documented somewhere or concurrency limit for the lambdas should be increased.

hanafya commented 1 year ago

Hey @vaspoz thanks for reaching out! I would recommend that you reach out to AWS Premium Support to help further deep dive the issue in your environment.