Open OllionDavidCunliffe opened 9 months ago
Hi @2Wdavidcunliffe , thank you for using the Landing Zone Accelerator on AWS (LZA) solution. In the Management
account, can you verify if trusted access is enabled for Security Hub in the Organization console? Additionally, are you using any custom configuration policies within Security Hub?
Sorry for the delay @bo1984. Trusted access is enabled under the services for the Organization.
I originally enabled security hub controls in my environment. When attempting to add a new account I was met with the same error as I'm receiving now. I went into the security account and disabled the security hub controls and the pipeline works fine. As soon as I attempt to add security hub back without the controls the same issue persists in LZA.
To Reproduce Edit Security-Config.yml
Expected behavior Enable feature and apply controls against all accounts within the organization.
Please complete the following information about the solution:
Screenshots From Security Audit stage:
Failed resources: AWSAccelerator-SecurityAuditStack-xxx-us-west-1 | 11:22:09 PM | CREATE_FAILED | Custom::SecurityHubCreateMembers | SecurityHubMembers/Resource/Default (SecurityHubMembers2A2B77C4) Received response status [FAILED] from custom resource. Message returned: AccessDeniedException: Account xxx is managed by a configuration policy
AWSAccelerator-SecurityAuditStack-xxx-us-west-1 failed: Error: The stack named AWSAccelerator-SecurityAuditStack-xxx-us-west-1 failed to deploy: UPDATE_ROLLBACK_COMPLETE: Received response status [FAILED] from custom resource. Message returned: AccessDeniedException: Account xxx is managed by a configuration policy
Deployment failed: Error: The stack named AWSAccelerator-SecurityAuditStack-xxx-us-west-1 failed to deploy: UPDATE_ROLLBACK_COMPLETE: Received response status [FAILED] from custom resource. Message returned: AccessDeniedException: Account xxx is managed by a configuration policy
2024-01-22 23:22:44.556 | error | toolkit | The stack named AWSAccelerator-SecurityAuditStack-xxx-us-west-1 failed to deploy: UPDATE_ROLLBACK_COMPLETE: Received response status [FAILED] from custom resource. Message returned: AccessDeniedException: Account xxx is managed by a configuration policy