问题
I had configured my bucket with public access to all my objects
But older files is still not public. If i access my old objects i'm getting access denied. I have to manually change them to public no other option for me.Currently i have 5000 objects inside my bucket.Manually changing them is not possible Is there any other thing to change in my bucket configuration from the default one..
回答1:
You can use aws cli command to achieve that.Use aws s3api put-object-acl.
Description :
uses the acl subresource to set the access control list (ACL) permissions for an object that already exists in a bucket.
Be aware that the put-object-acl command is for a single object only. In case you want to run it recursively, take a look at this thread.
More about How can I grant public read access to some objects in my Amazon S3 bucket?
回答2:
We can use for new objects, But existing old objects it is not getting changed.
来源:https://stackoverflow.com/questions/58503781/s3-bucket-objects-access-denied-for-existing-one