I'm trying to set up AWS to serve a static S3 site over SSL with a custom domain. I'm so close but I'm missing one piece.
S3 static website (works): xyz.s3-website.us-east-2.amazonaws.com
CloudFront distribution: abc.cloudfront.net w/SSL cert from Certificate Manager for mydomain.com with behavior of Redirect HTTP to HTTPS
DNS (GoDaddy): CNAME www abc.cloudfront.net
- https://www.example.com/ works perfectly
- https://example.com/ does not (privacy error)
- http://www.example.com/ redirects to https abc.cloudfront.net
- http://example.com/ redirects to https abc.cloudfront.net
The cert is set up for both www and none.
What am I doing wrong?