routing-traffic-with-route53-and-cloudfront

Automate Route 53 alias records and ACM certificates for CloudFront distributions.

Updated May 12, 2026
One-click install
npx skills add https://github.com/mreferre/aws-agent-toolkit-skills --skill routing-traffic-with-route53-and-cloudfront-mreferre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: routing-traffic-with-route53-and-cloudfront
Source: https://github.com/mreferre/aws-agent-toolkit-skills/tree/main/.kiro/skills/routing-traffic-with-route53-and-cloudfront
Command: npx skills add https://github.com/mreferre/aws-agent-toolkit-skills --skill routing-traffic-with-route53-and-cloudfront-mreferre

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Configuring DNS so a custom domain reliably routes HTTP/HTTPS traffic to an Amazon CloudFront distribution, including the necessary CloudFront alternate domain names and ACM certificate requirements.

Core Features & Use Cases

  • Route 53 Hosted Zone & Alias Records: Create or select the correct public hosted zone and set UPSERT alias A/AAAA records pointing to the CloudFront distribution domain.
  • CloudFront Alternate Domain Names (CNAMEs): Ensure the custom domain is added to the distribution’s alternate domain names before creating Route 53 records.
  • ACM Certificates for HTTPS (us-east-1): Request and validate an ACM certificate in us-east-1 and attach it to the CloudFront distribution for secure TLS.
  • IPv6 Support (AAAA Records): Optionally create AAAA alias records when IPv6 is enabled on the distribution.

Quick Start

Configure Route 53 to route www.example.com to CloudFront distribution E1234567890ABC by adding the domain to the distribution, requesting an ACM certificate in us-east-1, and creating the required A/AAAA alias records.

Frequently Asked Questions about routing-traffic-with-route53-and-cloudfront

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I point a custom domain to an Amazon CloudFront distribution?

You need to add the custom domain to CloudFront alternate domain names, request an ACM certificate in us-east-1, and create Route 53 alias A/AAAA records pointing to the distribution domain for HTTPS traffic.

Why does my CloudFront custom domain require an ACM certificate in us-east-1?

CloudFront custom domains require an ACM certificate in us-east-1 because CloudFront is a global service. You must request and validate the certificate there before attaching it to the distribution for secure TLS.

How do I configure Route 53 alias records for IPv6 traffic to CloudFront?

To configure IPv6 traffic, create AAAA alias records in Route 53 pointing to the CloudFront distribution. This requires IPv6 to be enabled on the distribution alongside the standard A alias records.

What is the correct order to set up DNS routing from Route 53 to CloudFront?

The correct order is to first add the custom domain to CloudFront alternate domain names, then request and validate the ACM certificate, and finally create the Route 53 alias A/AAAA records to ensure HTTPS readiness.

Can I use Route 53 to route traffic to a CloudFront distribution without downtime?

Yes, by verifying distribution status and validating inputs like domain format before applying changes. You use AWS CLI to UPSERT alias records and monitor Route 53 change propagation using DNS lookup tools to ensure reliable routing.

Why is my CloudFront alternate domain name not working after creating Route 53 records?

CloudFront alternate domain names must be added to the distribution before creating Route 53 records. The failure often indicates the ACM certificate validation is pending or the distribution status has not fully deployed.