How can I set a policy for an s3 bucket that allows authenticated users to list the bucket or get any file from the bucket

后端 未结 3 1884
小蘑菇
小蘑菇 2020-12-14 06:06

I have set a permission on the bucket that allows \"Authenticated Users\" to list, upload, and delete from a bucket I created. This seems to allow me to upload file

3条回答
  •  自闭症患者
    2020-12-14 06:36

    Update Bucket policy as below

    {
    "Version": "2012-10-17",
    "Id": "Policy1546023103427",
    "Statement": [
        {
            "Sid": "Stmt1546023101836",
            "Effect": "Allow",
            "Principal": "*",
            "Action": [
                "s3:ListBucket",
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::usagereports-atul",
                "arn:aws:s3:::usagereports-atul/*"
            ]
        }
    ]
    

    }

提交回复
热议问题