AWS S3对象权限(AWS S3 object permission)

编程入门 行业动态 更新时间:2024-10-14 00:27:55
AWS S3对象权限(AWS S3 object permission)

我在S3 Bucket中有一张图片。 当我点击下载图片时,它下载的很好,但是当我点击图片的链接时,它说Access Denied

我已经允许公众读取和写入权限。

还有什么我应该做的,使公众可以访问此图像?

I have an image in my S3 Bucket. When I click download image it downloads fine but when i click on the link of image it says Access Denied

I have allowed both read and write permission to public.

What else I should do to make this image accessible by public?

最满意答案

您的控制台图片显示分配给您的Amazon S3 存储桶的权限,而不是对象本身。 这种权限只授予访问权限以列出存储桶的内容 ,或者上传到存储桶。

如果您希望为该特定对象授予公共访问权限 ,则:

单击对象选项卡 勾选您想要修改的对象 点击权限标签 选择每个人 ,然后选择对象访问 ,然后勾选阅读 点击保存

该链接现在应该可以用于公众访问。

但是,如果您希望为存储区中的所有对象授予公共访问权限 ,请使用存储桶策略,例如向匿名用户授予只读权限 。 这也可以用来授予对存储桶中特定目录/路径的公共访问权限。

Your picture of the console is showing permissions assigned to your Amazon S3 bucket, not the object itself. Such permissions only grant access to list the contents of a bucket, or upload to a bucket.

If you wish to grant public access for that specific object, then:

Click the Objects tab Tick the object you wish to modify Click the Permissions tab Select Everyone, then Object Access, then tick Read Click Save

The link should now work for public access.

However, if you wish to grant public access for all objects in the bucket, use a Bucket Policy such as Granting Read-Only Permission to an Anonymous User. This can also be used to grant public access to a particular directory/path within a bucket.

更多推荐

本文发布于:2023-08-02 09:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1373106.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:权限   对象   AWS   object   permission

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!