How to Make CloudFront Serve Your S3 Website with a Custom Domain and HTTPS
You have a static site sitting in S3, a CloudFront distribution in front of it, and a domain registered in Route 53 — but the moment you try to attach a custom domain with HTTPS, the process branches into ACM certificate validation, CloudFront alternate domain names, and Route 53 alias records, all of which have to be wired together in the right order or the whole thing silently fails. TL;DR: Custom Domain + HTTPS on CloudFront Step What You Do Why It Matters 1 Request ACM certificate in us-east-1 CloudFront only reads ACM certs from us-east-1, regardless of your origin region 2 Add CNAME validation record to Route 53 ACM must verify domain ownership before issuing the cert 3 Attach the issued cert to CloudFront and add the alternate domain name (CNAME) CloudFront will reject HTTPS requests for domains not listed as CNAMEs 4 Point Route 53 alias record to the CloudFront distribution Alias records resolve ...