How can I make a S3 bucket public (the amazon example policy doesn't work)?

后端 未结 8 554
庸人自扰
庸人自扰 2020-12-28 16:38

Amazon provides an example for Granting Permission to an Anonymous User as follows (see Example Cases for Amazon S3 Bucket Policies):

{
    \"Versio         


        
8条回答
  •  南方客
    南方客 (楼主)
    2020-12-28 17:04

    The issue is with your Action it should be in array format

    Try this:

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

    Pass your Bucket name in 'Resource'

提交回复
热议问题