Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS S3 Bucket policy editor access denied

I am logged in with the root account trying to give public access to a bucket inline with the instructions for setting up a static s3 web site. However I get an access denied message when running the bucket policy.

There is no more detail on the message.

Error

like image 291
Philbot Avatar asked Nov 27 '18 09:11

Philbot


People also ask

Why is my S3 bucket Access Denied?

If you're getting Access Denied errors on public read requests that are allowed, check the bucket's Amazon S3 Block Public Access settings. Review the S3 Block Public Access settings at both the account and bucket level. These settings can override permissions that allow public read access.

How do I give permission to edit a bucket policy?

To create or edit a bucket policy In the Buckets list, choose the name of the bucket that you want to create a bucket policy for or whose bucket policy you want to edit. Choose Permissions. Under Bucket policy, choose Edit. This opens the Edit bucket policy page.

How do I give permission to an S3 bucket?

To set ACL permissions for a bucketSign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/ . In the Buckets list, choose the name of the bucket that you want to set permissions for. Choose Permissions. Under Access control list, choose Edit.

Why can't I access an object that was uploaded to my Amazon S3 bucket by another AWS account?

For these existing buckets, an object owner had to explicitly grant permissions to an object (by attaching an access control list). Otherwise, the bucket owner would be unable to access the object. With S3 Object Ownership, bucket owners can now manage the ownership of any objects uploaded to their buckets.


1 Answers

This could be due to recent changes in S3. To fix this issue, you need to assign Public Access to the bucket, follow the below steps:

  1. In the Permissions tab click on the Block Public Access settings.

  2. Click Edit to the right of these settings. enter image description here

  3. Make sure Block public access to buckets and objects granted through new public bucket or access point policies option is deselected. enter image description here

  4. Click Save.

  5. Go back to the Bucket Policy and try again.

like image 177
mostafazh Avatar answered Sep 18 '22 17:09

mostafazh