I have setup a cloudfront distribution with SSL, pointing to a s3 bucket which is public and setup as a static website. I chose the option to redirect HTTP to HTTPS, as I want to force HTTPS.
I setup route53 to have both A and AAAA records that are alias types, using
example.com and having it resolve to the cloudfront domain name. When I did this the "hosted zone ID" automatically came up, showing that amazon recognizes the cloudfront domain.
I can visit the cloudfront endpoint in my browser and see my website, however, if I go directly to
example.com (with no HTTPS, no www), then I see:
403 ERROR The request could not be satisfied. Bad request. Generated by cloudfront (CloudFront) Request ID: xDCmX7k8EFGGLAfjgpJcJ7AD-_mRfdBseTsqEP2aXfSWQ5S2mTMwuA==
However, if I try
https://example.com, then I just get a blank page.
I tried putting both
www.example.com in the cloudfront cnames field, but that did not seem to do anything, so I currently have them removed.