我在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 SaveThe 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.
更多推荐
发布评论