我想向所有人公开S3存储桶,但这样做时我被拒绝访问,
You can't grant public access because Block public access settings
are turned on for this account. To determine which settings are
turned on, check your Block public access settings.
当我进入公共访问设置时,所有功能都将关闭。
我确实设置了IAM用户,并且用户具有AmazonS3FullAccess策略
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "*"
}
]
}
我确实在存储桶上设置了策略
{
"Version": "2012-10-17",
"Id": "Policy1557294263403",
"Statement": [
{
"Sid": "Stmt1557294241958",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::726051891502:user/borroup-admin"
},
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::borroup",
"arn:aws:s3:::borroup/*"
]
}
]
}
我确实在存储桶上设置了CORS配置编辑器
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>Authorization</AllowedHeader>
</CORSRule>
</CORSConfiguration>
答案 0 :(得分:1)
答案 1 :(得分:0)
我希望您已经对此进行了整理,如果没有,请转到“修改公共访问权限设置” Edit public access settings 然后在下一个屏幕中输入确认以继续更改 confirm
答案 2 :(得分:0)
除了walterc的答案之外,如果仍有任何问题,我必须单击要访问的特定文件,然后单击该文件的“公开”,因为仅使存储桶公开对特定的文件无效文件链接访问。
答案 3 :(得分:0)