New to Claude Skills? Learn how to install them →

aws on GitHub

Route 53 and CloudFront Traffic Routing

OfficialFree

Easily configure DNS routing for CloudFront distributions.

by aws2.3k stars on aws/agent-toolkit-for-aws
1 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Route 53 and CloudFront Traffic Routing does

This skill provides comprehensive guidance for developers and system administrators on configuring Amazon Route 53 to route traffic to Amazon CloudFront distributions using custom domain names. It is particularly useful when setting up DNS alias records, alternate domain names (CNAMEs), and ACM certificates for HTTPS support. The skill ensures that users can effectively manage their hosted zones, create the necessary DNS records, and monitor the propagation of changes.

The skill outlines a step-by-step procedure for setting up a custom domain for a CloudFront distribution, which includes verifying the distribution's status, requesting and validating ACM certificates, and creating alias A and AAAA records that point to CloudFront. Users will find detailed instructions on managing public hosted zones and the requirements for SSL certificates, which must be validated and located in the us-east-1 region. This ensures that all configurations are compliant with AWS best practices.

Additionally, the skill addresses common troubleshooting scenarios, such as issues with CNAME configurations, SSL certificate validation, and DNS propagation delays. It emphasizes the importance of adding alternate domain names in the CloudFront distribution settings before creating Route 53 records, and it provides tips for verifying DNS changes using tools like nslookup or dig. Overall, this skill is designed for those who need to integrate Route 53 with CloudFront efficiently, ensuring a smooth setup process for custom domains.

Whether you're deploying a new application or migrating an existing one to AWS, this skill equips you with the necessary instructions to configure traffic routing correctly and securely, making it an essential resource for AWS users.

When to use it

Use this skill when setting up a custom domain for an Amazon CloudFront distribution and managing DNS records with Route 53.

When not to use it

This skill is not suitable for users who do not require custom domain configurations or those using private hosted zones with CloudFront.

What you can build with it

Setting Up a New Application

When deploying a new application on AWS, this skill helps configure Route 53 to route traffic to your CloudFront distribution with a custom domain.

Migrating an Existing Domain

If you're migrating an existing domain to AWS, this skill provides the necessary steps to set up Route 53 and CloudFront for seamless traffic routing.

Troubleshooting SSL Issues

This skill guides you through resolving common SSL certificate issues encountered when configuring CloudFront with Route 53.

How to install Route 53 and CloudFront Traffic Routing

View source

1. Install with the skills CLI

npx skills add aws/agent-toolkit-for-aws/routing-traffic-with-route53-and-cloudfront --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by aws

Routing Traffic with Route 53 and CloudFront

Overview

Domain expertise for configuring Amazon Route 53 to route traffic to Amazon CloudFront distributions using custom domain names. Covers hosted zone management, alias A/AAAA records, alternate domain name (CNAME) configuration, and ACM certificate setup for HTTPS.

Configure Route 53 to route traffic to a CloudFront distribution

To set up a custom domain for a CloudFront distribution with Route 53 DNS, follow the procedure exactly. See Route 53 CloudFront routing procedure.

The procedure covers:

  • Verifying CloudFront distribution status and CNAME configuration
  • Requesting and validating ACM certificates (must be in us-east-1)
  • Creating or locating public hosted zones
  • Creating alias A and AAAA records pointing to CloudFront
  • Monitoring DNS propagation

Troubleshooting

Domain not in CloudFront CNAMEs

Add the domain as an alternate domain name in the CloudFront distribution configuration before creating Route 53 records.

SSL certificate issues

ACM certificates for CloudFront must be in us-east-1. Ensure the certificate is validated and associated with the distribution.

Private hosted zone

CloudFront only works with public hosted zones. Create a public hosted zone if only a private one exists.

DNS propagation delays

Changes typically propagate within 60 seconds but full global propagation can take up to 48 hours. Use nslookup or dig to verify.

Frequently asked questions about Route 53 and CloudFront Traffic Routing

Similar skills