Access Denied error when accessing Cloudfront url image link

0

Hi, All of a sudden our site wasn't saving images to the S3 bucket and also getting Access Denied from Cloudfront. We have a WordPress site and aren't using Plugins to save to our S3 bucket. Does Amazon change permissions over time? As its a very strange issue that images just stopped uploading..

1 個回答
0

Hello -

I understand your experiencing an access denied error unexpectedly when accessing CloudFront URL image links and S3 buckets. 
 
This article might help you troubleshoot the issue. 
https://aws.amazon.com/premiumsupport/knowledge-center/s3-website-cloudfront-error-403/
 
Steps you could possibly check:
1. Confirm that the objects in the bucket are not encrypted by AWS KMS
2. Confirm that there is no explicit "Deny" in the bucket policy for the s3:GetObject action
3. Confirm that Amazon s3 block public access is turned off for the bucket
4. Confirm that objects in the bucket are publicly accessible
5. If you're using a Referer header to restrict access from CloudFront to your S3 origin, then review the custom header
6. Confirm that there's no explicit "Deny" Service control policies (SCPs) attached by your organization's management account
 
I hope that helps you troubleshoot the access denied error.
已回答 2 年前
AWS
支援工程師
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南