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 réponses
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
répondu il y a un an
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions