Amazon S3存储桶策略公共访问被拒绝 [英] Amazon S3 Bucket Policy Public Access Denied

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

问题描述

我试图将我的S3存储桶公开,但是当我添加以下策略时,我得到了错误访问被拒绝:

I'm trying to make my S3 bucket public but when I add the following policy I get Error Access Denied:

{
   "Version":"2012-10-17",
   "Statement":[{
      "Sid":"AddPerm",
      "Effect":"Allow",
      "Principal":"*",
      "Action":[
         "s3:GetObject"
      ],
      "Resource":[
         "arn:aws:s3:::emergencydatascience.org/*"
      ]
    }]
}

推荐答案

进入存储桶>权限>公共访问设置>编辑>取消选中阻止新的公共ACL并上传公共对象,并删除通过公共ACL授予的公共访问权限(警告)

Go in to your Bucket > Permissions > Public access settings > Edit > Untick Block new public ACLs and uploading public objects and Remove public access granted through public ACLs (warning)

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

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