routing-traffic-with-route53-and-cloudfront — Claude Code skill
Sets up Route 53 to send a custom domain to a CloudFront distribution with HTTPS and IPv6. Use it when creating alias records or connecting a domain to CloudFront.
npx skills add aws/agent-toolkit-for-aws --skill routing-traffic-with-route53-and-cloudfront -a claude-codeWhat routing-traffic-with-route53-and-cloudfront does
This skill guides Route 53 setup for a CloudFront distribution. It checks distribution status and alternate domain names, then helps locate or create a public hosted zone and add alias A and AAAA records pointing to CloudFront.
It also covers ACM certificates for HTTPS, including validation and association with the distribution. A CloudFront certificate must be in us-east-1, so check its region before changing DNS.
For propagation issues, it uses nslookup or dig to verify DNS results. Changes typically propagate within 60 seconds, while global propagation can take up to 48 hours.
What it helps with
- route a custom domain to a CloudFront distribution
- create Route 53 alias A and AAAA records
- attach a validated ACM certificate for HTTPS
- check CloudFront alternate domain names
- verify DNS propagation with
dig
Example prompts for the agent
- Set up Route 53 to route
example.comto my CloudFront distribution. - Check whether my domain is configured as a CloudFront alternate domain name and prepare the DNS records.
- Help me verify my ACM certificate in
us-east-1and check DNS withnslookup.
How to install routing-traffic-with-route53-and-cloudfront
1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill routing-traffic-with-route53-and-cloudfront -a claude-code2Manually: put the files in place
~/.claude/skills/routing-traffic-with-route53-and-cloudfront/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/routing-traffic-with-route53-and-cloudfront/
1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill routing-traffic-with-route53-and-cloudfront -a codex2Manually: put the files in place
.agents/skills/routing-traffic-with-route53-and-cloudfront/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill routing-traffic-with-route53-and-cloudfront -a cursor2Manually: put the files in place
.cursor/skills/routing-traffic-with-route53-and-cloudfront/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aws/agent-toolkit-for-aws routing-traffic-with-route53-and-cloudfront2Manually: put the files in place
.github/skills/routing-traffic-with-route53-and-cloudfront/SKILL.md1Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill routing-traffic-with-route53-and-cloudfront -a gemini-cli2Platform CLI
gemini skills install https://github.com/aws/agent-toolkit-for-aws --path skills/specialized-skills/networking-and-content-delivery-skills/routing-traffic-with-route53-and-cloudfrontManually: put the files in place
.devin/skills/routing-traffic-with-route53-and-cloudfront/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aws/agent-toolkit-for-aws --skill routing-traffic-with-route53-and-cloudfront -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about routing-traffic-with-route53-and-cloudfront
How do I install routing-traffic-with-route53-and-cloudfront in Claude Code?
Run npx skills add aws/agent-toolkit-for-aws --skill routing-traffic-with-route53-and-cloudfront -a claude-code, then run npx skills add aws/agent-toolkit-for-aws --skill routing-traffic-with-route53-and-cloudfront -a claude-code again. The skill file is placed at ~/.claude/skills/routing-traffic-with-route53-and-cloudfront/SKILL.md.
What does routing-traffic-with-route53-and-cloudfront do?
It guides the setup of a custom domain from Amazon Route 53 to Amazon CloudFront. It covers hosted zones, alias A and AAAA records, CNAME configuration, and ACM certificates.
What ACM certificate does CloudFront require for HTTPS?
The ACM certificate must be in us-east-1, validated, and associated with the CloudFront distribution. CloudFront also requires a public hosted zone.
Source text
SKILL.md · Apache-2.0
--- name: routing-traffic-with-route53-and-cloudfront description: Configures Amazon Route 53 to route traffic to a CloudFront distribution using a custom domain. Use when setting up DNS alias records, alternate domain names (CNAMEs), ACM certificates for HTTPS, and IPv6 support for CloudFront. version: 1 --- # 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](references/route53-cloudfront-routing.md). 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.
© aws · Apache-2.0 · aws/agent-toolkit-for-aws