Back to all posts
AWS1 min read

Adding a Custom Domain to AWS S3 or EC2 with CloudFront

A clean route map for certificates, DNS, and CloudFront behavior.

awscloudfrontdns
CloudFront diagram cover image

Adding a Custom Domain to AWS S3 or EC2 with CloudFront

Request flow

Deployment checklist

StepWhy it matters
Request ACM certificate in us-east-1CloudFront certificates must live there
Add your custom domain to the distributionCloudFront needs an alternate domain name
Update DNS with CNAME or aliasTraffic must resolve to the distribution
Confirm cache and security headersAvoid stale content and weak defaults

Common failure mode

If the certificate looks correct but the browser still warns, check whether the domain was attached to the distribution itself, not just issued in ACM.

Tight verification

  1. Open the custom domain over HTTPS.
  2. Confirm the certificate matches your domain.
  3. Confirm the server and response headers match the CloudFront layer you expect.