How to Find AWS Regions Without AWS Config Enabled
The AWS configuration item history captured by AWS Config enables security analysis, resource change tracking and compliance auditing.
info
This security check is part of the CIS Amazon Web Services Benchmarks and is rated severity medium.
Prerequisites
This guide assumes that you have already installed and configured Fix Inventory to collect your AWS resources.
Directions
-
Execute the following
search
command in Fix Inventory Shell:> search is(aws_region) with(empty, --> is(aws_config_recorder) and recorder_status.recording=true and recorder_group.all_supported=true and recorder_status.last_status=SUCCESS)
kind=aws_region, ..., region=fixinventory-poweruser
kind=aws_region, ..., account=poweruser-team -
Pipe the
search
command into thedump
command:> search is(aws_region) with(empty, --> is(aws_config_recorder) and recorder_status.recording=true and recorder_group.all_supported=true and recorder_status.last_status=SUCCESS) | dump
reported:
id: /aws/config/123
name: some-name
ctime: '2022-12-05T22:53:14Z'
kind: aws_region
age: 2mo28dThe command output will list the details of all non-compliant
aws_region
resources.
Remediation
- Enable AWS Config in all regions.
note
Please refer to the AWS Config documentation for details.