Hello everyone. I am trying to use cloudfront to service my static resume website that’s hosted on S3. I followed this guide (https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-serve-static-website/).
I created the distribution and restricted access by using OAC. I set the S3 bucket as the origin for the distribution. I also copied the policy that was generated after I clicked on create and pasted it to my S3 bucket policy. I also purchased a domain from rt 53 and assigned it a custom SSL certificate via ACM. So after all that I get this xml/access denied error.
I’ve retraced my steps, started from the beginning and I still get this error. I feel like I’m missing a very simple step. It has to be a permissions issue, right? I was able to view the webpage before configuring the cloudfront distribution when the static web hosting was enabled in the S3 bucket.
The guide said I don’t need static web hosting enabled so I disabled it then created the distribution. I still get the error when I enable static web hosting. If anyone can point me in the right direction it will be greatly appreciated. This is embarrassing to admit but I’ve been stuck on this for a few days now lol.