AWS S3 make public via ACL disabled?

I am trying to make my file public through AWS management console, I have already turned off the bucket block public access as below.

enter image description here

But when I go to the file and try to make the file public, the option is disabled

enter image description here

I followed the official instruction on AWS, but apparently, it had some new updates on this option.

Am I missing anything or there are some settings I did'nt do ?

1

2 Answers

Probably the bucket has ACLs disabled.

Since November 2021, you can disable access control lists (ACLs). Using ACLs is not recommended except in unusual circumstances where you need to control access for each object individually. Instead you should grant permissions using the bucket policy.

Anyway, if you need to use ACLs then to enable it go to Permissions tab and change the Object Ownership option:

Object Ownership

2

You can try to edit the bucket policy as step 2 of this documentation.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject" ], "Resource": [ "arn:aws:s3:::Bucket-Name/*" ] } ] } 

This reading may also helps:

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like