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개 답변
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
전문가
답변함 일 년 전
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
전문가
kentrad
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠