I have followed this guide on AWS documentation. I am trying to host a simple static website in the UK [eu-west-2]. I can see that a few people have asked this question but none of the solutions seem to change this status :/ The web content shows up ok but the address bar shows that the website is not secure.
From what I understand
- To be able to use Cloudfront, the SSL certificate xxxxxx.co.uk (with both www.xxxxxx.co.uk & xxxxxx.co.uk) must be requested in N.Virginia region, which I created & linked from scratch incase the default was faulty :check
- Configure root domain bucket for website hosting & Configure subdomain bucket for website redirect
- DNS validation for SSL certificate so that Cname records are automatically added to R53. Crossed checked to see that the correct cname is linked to the SSL certificate used by Cloudfront
- At one stage, I added the Alias to CloudFront as an A record in my R53 for xxxxxx.co.uk. It didn't work, because there was nothing pointing to the root domain bucket anymore [Thought i'd mention this incase it helps with troubleshooting]
I've checked AWS ACM Troubleshooting advice too :
- Certificate for the domain(/s) is new
- Caches cleared when refreshing page / Tried a different browser
- It's a simple www.xxxxxx.co.uk website and so the certificate is valid for the name of the server
Other resource used include
- https://towardsdatascience.com/static-hosting-with-ssl-on-s3-a4b66fb7cd00
- https://medium.com/@aidan.hallett/how-to-set-up-a-static-website-with-ssl-tls-and-a-custom-domain-using-aws-s3-and-cloudfront-145be108b431
But I still get the 'Not secure' error which is driving me batty atm. Thanks in advance