Open Wonk

01 Dec 2019

Policy to Make Aws S3 Bucket Public

When hosting a static site using AWS S3 buckets, you’ll need update the bucket policy to allow for public reads. If you don’t update the policy, no one will read your content.

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

Note, change the BUCKET_NAME to the name of your bucket.