Description
An AWS Config aggregator collects configuration and compliance data recorded in its source accounts and Regions. For a review covering all Regions, include current and future supported Regions.
Potential impact
Central reports can miss resource changes or compliance issues outside the selected Regions.
Remediation
For all-Region coverage, set the Ansible module option all_aws_regions or the AWS CLI input field AllAwsRegions to true. Enable Config recording in the source accounts and Regions. For individual accounts, authorize the aggregator’s account and Region at each source. For an organization source, use AWS Organizations integration and its IAM role.
Examples
These Ansible tasks run the AWS CLI. Supply the CLI, its AWS credentials and the actual 12-digit account IDs. The second task replaces us-east-1 with all Regions for the same three accounts. When updating an existing aggregator, include every account you need to retain.
Before
- name: Create Config aggregator
ansible.builtin.command:
argv:
- aws
- configservice
- put-configuration-aggregator
- --configuration-aggregator-name
- test_config_rule
- --account-aggregation-sources
- >-
[{"AccountIds":["123456789012","012345678901","901234567890"],"AllAwsRegions":false,"AwsRegions":["us-east-1"]}]
After
- name: Create Config aggregator
ansible.builtin.command:
argv:
- aws
- configservice
- put-configuration-aggregator
- --configuration-aggregator-name
- test_config_rule
- --account-aggregation-sources
- >-
[{"AccountIds":["123456789012","012345678901","901234567890"],"AllAwsRegions":true}]