S3 website Url not working with cloudfront when Public access is disable.

0

Hi, S3 has static website enabled and configured through cloud front using OAI. When s3 is public accessible , the cloudfront url is working , once S3 Public access is disabled , even website is not being accessed by cloudfront url and getting access denied.

2 Answers
0

Hi,

Make sure bucket policies are also updated as pointed out here: https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-access-to-amazon-s3/.

Hope it helps and if does I would appreciate if answer can be accepted so that community can benefit for clarity when searching for similar issues, thanks ;)

profile picture
EXPERT
answered a year ago
0

Check the Origin Domain value under the CloudFront -> Distribution -> Origin. You probably have the URL set to the website URL instead of the bucket URL.

profile pictureAWS
EXPERT
kentrad
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions