mcpField
R
routing-traffic-with-route53-and-cloudfront

routing-traffic-with-route53-and-cloudfront

github.com/awsCloud & DevOps3.3k6.3k installsUpdated 1d ago
Repository

About routing-traffic-with-route53-and-cloudfront

A domain-expertise skill for routing custom-domain traffic from Amazon Route 53 to Amazon CloudFront. It guides DNS and HTTPS setup, including hosted zones, alias records, certificates, and troubleshooting.

Key features

  1. 01Configure Route 53 hosted zones
  2. 02Create A and AAAA alias records
  3. 03Set CloudFront alternate domain names
  4. 04Request and validate ACM certificates
  5. 05Troubleshoot DNS and certificate issues

Use cases

  1. 01Connect a custom domain to a CloudFront distribution
  2. 02Configure ACM certificates for HTTPS
  3. 03Check DNS propagation and routing problems

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aws/agent-toolkit-for-aws --skill routing-traffic-with-route53-and-cloudfront

After installing, type/routing-traffic-with-route53-and-cloudfrontin Claude Code to confirm it loaded.

Bundled filesreferences/route53-cloudfront-routing.md

Details

From the project README

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.

Comments

Markdown supported