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 Respuestas
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
EXPERTO
respondido hace un año
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
EXPERTO
kentrad
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas