aws_securityhub_organization_admin_account and ResourceConflictException #17996
Labels
bug
Addresses a defect in current functionality.
service/securityhub
Issues and PRs that pertain to the securityhub service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
I want to delegate the SecurityHub admin account to another non-management account in same Organization. I want this done for all regions. For multi-region support I have providers defined: one per region. I have a "region-module.tf" file (see below) that calls "base" module (see below) for each region and get the regional provider passed. The "base" module acts like a proxy and calls the "securityhub" module (see below), which includes the
aws_securityhub_organization_admin_account
resource.region-modules.tf:
modules/base/main.tf:
modules/securityhub/organization_regional/main.tf:
Debug Output
Panic Output
Expected Behavior
16
aws_securityhub_organization_admin_account
resources get created.Actual Behavior
On first run 11 resources were created but I got 5 errors like:
On retry 4 resources got created, leaving 1 error. Another retry fixed that.
Even though the resource is regional it seems to contain a global component that is throttled or locked. I assume this makes it impossible to fix in Terraform. So I created this bug mostly so other users are aware of this behaviour.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: