Skip to content

S3 Bucket Public Read Only Policy

You can use the following policy to make the objects under S3 bucket publicly readable.

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AllowPublicRead",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": [
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::bucketName/*"
            ]
        }
    ]
}

To make this, Go to S3 Bucket on AWS Console, click Permissions and press the Edit button next to Bucket policy. Copy Json, update “bucketName” with yours.

Published inAmazon Web Services
© 2024 M.Sertaç Bayır - All Rights Reserved