- Newest
- Most votes
- Most comments
The issue you're experiencing with enabling Security Hub Central Configuration using Terraform in a delegated admin account is likely related to insufficient permissions, despite having SecurityHub:"*" access.
To enable central configuration in AWS Security Hub, there are a few key requirements and steps to consider:
-
The account must be properly designated as the Security Hub delegated administrator for the organization. This designation must be done through AWS Organizations, not just by granting SecurityHub permissions.
-
The delegated administrator account must be in the intended home Region for Security Hub. The home Region is where the delegated administrator configures the organization and cannot be an opt-in Region.
-
Security Hub must be integrated with AWS Organizations. This integration involves creating an organization in AWS Organizations if not already done.
-
The action to enable central configuration must be performed from the home Region. The delegated administrator can create and manage configuration policies only from this designated home Region.
-
Ensure that you have the necessary permissions not just in Security Hub, but also in AWS Organizations. You may need additional permissions related to Organizations to perform this action.
-
Double-check that you're running the Terraform code in the correct AWS region - it should be the designated home Region for Security Hub.
-
Verify that the Security Hub service-linked role exists in your AWS account. This role is usually created automatically when you enable Security Hub, but if it's missing, you may need to create it manually.
If you've confirmed all these points and are still encountering the AccessDeniedException, you may need to escalate to AWS Support for further investigation. They can help identify any specific permission issues or potential service problems that might be causing this error.
Sources
Enabling central configuration in Security Hub - AWS Security Hub
Managing Security Hub administrator and member accounts with Organizations - AWS Security Hub
UpdateOrganizationConfiguration - AWS Security Hub
Well discovered what the issue is. The AWS managed policy (AWSSecurityHubOrganizationsAccess) was added to the role and was able to get Central Config deployed. So it needed additional Organization permissions.
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated 7 months ago
