How do I solve this Access Denied error for my S3 static website served through CloudFront
This XML file does not appear to have any style information associated with it. The document tree is shown below.
AccessDenied
Access Denied
RequestIdT589S2XZZX9RT3A0
HostId
QXeY4IpiiUCI9DY9ovT5nJwJDwNbrLwalpEc+7xWgs43kfPJh1FQ40w2k8gGkCqS0nkxhzTP0vo=
HostId
The website works fine without error when I change the S3 policy, allow public access and bypass CloudFront. DNS Checker for my domain and Qualys SSL reports are all ok. I have edited the S3 bucket policy to grant CloudFront permission to call the GetObject API operation from the S3 bucket using the Policy provided for the OAC in the CloudFront console. The root is correctly set to template/index.html.
After entering my website address into the browser address bar I expected my browser to display the home page of my resume website but it returned the Access Denied error mentioned previously
Tim Smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.