I am trying to make my file public through AWS management console, I have already turned off the bucket block public access as below.
But when I go to the file and try to make the file public, the option is disabled
I followed the official instruction on AWS, but apparently, it had some new updates on this option.
https://aws.amazon.com/tw/premiumsupport/knowledge-center/read-access-objects-s3-bucket/
Am I missing anything or there are some settings I did'nt do ?
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:
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: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-photos-view.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With