Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aws/agent-toolkit-for-aws --skill routing-traffic-with-route53-and-cloudfront -a claude-code
Open on GitHub

What 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.com to 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-1 and check DNS with nslookup.

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-code

2Manually: put the files in place

~/.claude/skills/routing-traffic-with-route53-and-cloudfront/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/routing-traffic-with-route53-and-cloudfront/

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

Similar skills

Everything for Cloud: AWS, Azure, GCP →

From the same set133

setting-up-cloudwatch-alarm-notifications Wires CloudWatch alarms to notification channels through SNS: encrypted topics, subscriptions, access policies and alarm actions. CX Codex +1 6,300installs debugging-lambda-timeouts Investigates AWS Lambda timeout failures by inspecting CloudWatch logs, metrics, and configurations. Use it when function runs hit or approach execution limits. CX Codex +1 6,400installs configuring-vpc-endpoints-for-private-aws-service-access A skill that walks the agent through VPC endpoint setup with AWS PrivateLink, so AWS services stay reachable without an internet gateway or public IPs. CX Codex +1 6,400installs setting-up-ec2-instance-profiles Configures EC2 instance profiles and IAM roles so applications call AWS services without hardcoded credentials. Useful when an instance needs temporary access to S3, DynamoDB, or SQS. CX Codex +1 6,200installs creating-api-gateway-stage Builds an API Gateway stage with CloudWatch logging, X-Ray tracing, throttling and WAF. Handy when a REST API ships to dev, test or production. CX Codex +1 6,200installs creating-production-vpc-multi-az Plan a VPC across multiple Availability Zones, with public and private subnets, NAT gateways, routing, and security groups. Use it when setting up AWS network infrastructure. CX Codex +1 6,100installs creating-amazon-aurora-db-cluster-with-instances Creates Aurora cluster with instances, sets up password via Secrets Manager, and monitors status with retry logic. Supports MySQL and PostgreSQL. CX Codex +1 6,000installs setting-up-cloudtrail-multi-region Configures a multi-region AWS CloudTrail trail with S3 storage and CloudWatch Logs streaming. Useful for centralizing API audit logs and running security queries. CX Codex +1 6,100installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor