So I have a working Cloudfront distribution, but I haven't been able to use my domain name with it. I've follow tutorials, troubleshooting steps and other similar questions, but I haven't found my issue yet. This is what I've done so far:
- Register domain name with Route 53
- Created S3 bucket with name
www.example.comandexample.comredirecting to first bucket - Tested that my CloudFront distribution domain name works as expected
Added alternate domain name with my domain name. I added both
example.comand with wwwwww.example.com - Origin domain is the S3 bucket. I left the name the same. Origin access is set to "Legacy access identities" and the identity is default "Access S3 bucket content only though CloudFront"
- Requested and got a public ACM certificate with location us-east1 (N. Virginia). I added domain name
example.comand a second one*.example.com. Certificate shows as "issued" - I should have created the records automatically while my certificate was loading, but I didn't. I tried creating it from ACM, but it wouldn't let me anymore. I copied the CNAME and added the record manually to Route 53. I found the hosted zone with my domain name, and copied the hash and value to create the record. Record is
_longhash.example.comand the CNAME value from ACM. - CloudFront distribution has SSL certificate from previous step selected. I double check is
example.com. It also has IPV6 enabled - I created an A record with
www.example.commapping to my distribution (I do find my distribution in the dropdown, and I checked that the Id matches) - I created an AAAA record same as step before (for IPV6) NS and SOA records were created automatically by Route 53 and I haven't touched them
- I have waited for more than 2 days
When I go to the website example.com I just get a redirect to my ISP page. It says that the connection is not secure. So I'm guessing it's something wrong with the certificate.
What am I missing or what did I do wrong?