More Info:
Ensure that AWS Config service is enabled in all regions in order to have complete visibility over your AWS infrastructure configuration changes.Risk Level
HighAddress
SecurityCompliance Standards
CBPRemediation
Using Console:
- Steps:
- Log in to the AWS Management Console.
- Navigate to the AWS Config service.
- Check if there are any Configuration Recorders configured.
- If there are no Configuration Recorders, create a new one by clicking on “Create Configuration Recorder” and follow the setup wizard.
- If there are Configuration Recorders:
- Review each Configuration Recorder.
- Ensure that the “Include global resources” option is enabled.
- Edit the Configuration Recorder if necessary to enable global resource recording.
Using CLI:
- Commands:
- Steps:
- Use the above CLI command to update the Configuration Recorder to include global resource recording.
- Replace
name=defaultwith the name of your Configuration Recorder.
Using Python
- Logic:
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
Below are the exact console steps to enable AWS Config so it records Route 53 resources (which are global):
-
Sign in and pick the right Region
- Sign in to the AWS Management Console.
- In the top-right, choose Region US East (N. Virginia) –
us-east-1.
Route 53 is a global service; AWS Config records it only from this Region.
-
Open AWS Config
- In the search bar, type “Config” and open AWS Config.
-
Start the setup
- If AWS Config is not yet configured in this account/Region, you’ll see a welcome/setup page.
- Click Get started or Set up AWS Config.
-
Select resource types to record
- Under Resource types to record:
- Choose Record all resources supported in this region
or - Choose Include specific types of resources and then select the Route 53 types you want, for example:
AWS::Route53::HostedZoneAWS::Route53::HealthCheck
- Choose Record all resources supported in this region
- Very important: Check “Include global resources (e.g., AWS IAM resources)”.
This flag is required for AWS Config to record global services like Route 53.
- Under Resource types to record:
-
Set up the delivery destination (S3 bucket)
- Under Amazon S3 bucket:
- Either choose Create a bucket (recommended: unique name like
aws-config-logs-ACCOUNTID-REGION)
or - Select an existing bucket.
- Either choose Create a bucket (recommended: unique name like
- Optionally specify a prefix (e.g.,
aws-config/).
- Under Amazon S3 bucket:
-
(Optional) Configure SNS notifications
- Under Amazon SNS topic:
- Either leave it empty,
or select Use an existing SNS topic or Create a topic if you want notifications for configuration changes/Compliance state changes.
- Either leave it empty,
- Under Amazon SNS topic:
-
IAM role for AWS Config
- Let AWS Config create a role for you:
- Select Create a service-linked role or Create a role (depending on the UI).
- Accept the default permissions it suggests for recording and delivering configuration snapshots.
- Let AWS Config create a role for you:
-
Review and confirm
- Review all settings:
- Resource recording includes global resources
- S3 bucket is correctly set
- IAM role is configured
- Click Confirm / Save / Enable AWS Config (label may vary slightly).
- Review all settings:
-
Verify Route 53 is being recorded
- In AWS Config console, go to Resources.
- Filter by Resource type and look for:
AWS::Route53::HostedZoneAWS::Route53::HealthCheck
- You should see your existing hosted zones/health checks listed after a short delay.
Using CLI
Using CLI
To “enable AWS Config for Route 53” you must:
To record only Route 53 hosted zones:
(Optionally add SNS:
Ensure:
-
Turn on an AWS Config configuration recorder that:
- Records the Route 53 resource type(s), or
- Records all supported resource types and includes global resources.
- Configure a delivery channel (S3 bucket, optionally SNS).
us-east-1).0. Prereqs
- You have an S3 bucket for Config logs, e.g.
my-config-logs-bucket. - Your IAM role for AWS Config exists, e.g.
arn:aws:iam::123456789012:role/aws-config-role. - Use a region that supports Route 53 global resource recording (e.g.
us-east-1).
1. Create / update the Configuration Recorder
To record all resources including Route 53 (recommended):
Note: includeGlobalResourceTypes=true is required for Route 53 because it is a global service.
2. Create / update the Delivery Channel
,snsTopicARN=arn:aws:sns:us-east-1:123456789012:aws-config-topic.)3. Start the Configuration Recorder
4. Verify that Config is recording Route 53
recordingistrueincludeGlobalResourceTypesistrueAWS::Route53::HostedZone(orallSupported=true) is in the recording group.
Using Python
Using Python
To “enable AWS Config for Route 53” you need to:
This will enable AWS Config in
Keep the delivery channel and
- Turn on AWS Config in the target region.
- Configure a recorder that includes Route 53 resource types.
- Configure a delivery channel (S3 bucket, optionally SNS).
- Start the configuration recorder.
1. Prerequisites
- Python 3.x
boto3installed:- An S3 bucket for AWS Config (e.g.,
my-config-logs-bucket). - An IAM role for AWS Config (or let the console create it and re-use it).
Typical role name:AWSServiceRoleForConfig.
- Use the console once to enable Config (it creates the role), or
- Create an IAM role with trusted entity
config.amazonaws.comand attach AWS-managed policyAWSConfigRole(plus S3 permissions for your bucket).
2. Know the Route 53 AWS Config resource types
For Route 53, relevant resource types include, for example:AWS::Route53::HostedZoneAWS::Route53::HealthCheckAWS::Route53Resolver::ResolverEndpointAWS::Route53Resolver::ResolverRuleAWS::Route53Resolver::ResolverRuleAssociationAWS::Route53Resolver::ResolverQueryLoggingConfigAWS::Route53Resolver::ResolverQueryLoggingConfigAssociation- (or you can simply record
allSupportedresources)
3. Python code to enable AWS Config (with Route 53)
This example:- Uses region
us-east-1(change as needed) - Uses S3 bucket
my-config-logs-bucket(change as needed) - Creates/updates:
- Configuration recorder
- Delivery channel
- Enables recording of all supported resources (which includes Route 53).
If you want only Route 53, see the variant below.
us-east-1 and start recording all supported resources, including Route 53.4. Variant: Record only Route 53 resource types
If you want to record only Route 53 resources instead of all resources:start_configuration_recorder code the same.5. Verification
After running the script:- In the AWS console, go to AWS Config → Settings in the target region.
- Confirm:
- Configuration recorder is ON.
- Resource types include Route 53 (or “All resources”).
- S3 bucket is configured.
- Check S3 bucket for configuration history snapshots and configuration items over time.
Using Terraform
Using Terraform
terraform plan should show the creation of aws_config_configuration_recorder.main, aws_config_delivery_channel.main, aws_config_configuration_recorder_status.main, the S3 bucket, and related S3 controls, with no Route53 resources being replaced.
