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

后端 未结 8 494
庸人自扰
庸人自扰 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:05

    This works.

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

提交回复
热议问题