S3 Bucket objects access denied for existing one

怎甘沉沦 提交于 2020-01-25 07:35:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!