How to Set Default Public Access On your AWS S3 Bucket

I’m creating a bucket for my users to download image files that will display on their pages of my app, so I wanted to create a bucket which has complete public read access. After some googling, I’ve worked out that you need to do two things in the permissions area of the bucket:

  1. In the [Block Public Access] area, turn off the “Block All Public Access” option

and also:

  1. In the Bucket Policy area, add the following code:
{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AllowPublicRead",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*"
        }
    ]
}
Community Page
Last updated: