问题描述
我有一个AWS超级用户,我曾经在Amazon上创建S3存储桶.
现在,我想通过添加以下策略将此存储桶公开:
I have an AWS root user which I used to create a S3 bucket on Amazon.
Now I want to make this bucket public by adding following policy:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<my bucket name>/*"
}]
}
我的水桶叫什么名字?
当我尝试保存此策略时,我收到403访问被拒绝的消息.
Where is my name of the bucket?
When I trying to save this policy I get a 403 access denied..
我尝试显式设置putbucketpolicy
权限,但是它仍然给出403.
I tried explicitly setting the putbucketpolicy
permission but it still gives a 403.
Any body that knows why?
这是图像错误:
推荐答案
取消选中2行以解决拒绝访问的问题.但请记住,在创建新存储桶之前,请仔细阅读并加以考虑.许可真的很重要.
Uncheck 2 rows for fixing the access denied. But please remember reading it clearly and consider it before you create a new bucket. Permission is really important.
这篇关于以root用户(=存储桶拥有者)在AWS S3存储桶上放置存储桶策略时,访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!