现有的S3存储桶对象访问被拒绝 [英] S3 Bucket objects access denied for existing one

查看:250
本文介绍了现有的S3存储桶对象访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为我的存储桶配置了对我所有对象的公共访问权限

I had configured my bucket with public access to all my objects

但是旧文件仍然不公开. 如果我访问旧对象,我将被拒绝访问. 我必须手动将它们更改为public没有其他选择.目前,我的存储桶中有5000个对象.无法手动更改它们 与默认配置相比,我的存储桶配置是否还有其他更改.

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

推荐答案

您可以使用aws cli命令来实现.使用

You can use aws cli command to achieve that.Use aws s3api put-object-acl.

说明:

使用acl子资源来设置访问控制列表(ACL) 存储桶中已存在的对象的权限.

uses the acl subresource to set the access control list (ACL) permissions for an object that already exists in a bucket.

请注意,put-object-acl命令仅适用于单个对象.如果您想递归运行它,请查看此

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.

有关>如何授予公众阅读权限的详细信息访问我的Amazon S3存储桶中的某些对象?

这篇关于现有的S3存储桶对象访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆