0

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..

Manikandan Ram
  • 155
  • 2
  • 11

1 Answers1

0

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?

Amit Baranes
  • 7,398
  • 2
  • 31
  • 53