Last Updated: November 15, 2016
·
229
· Lars Van Casteren

AWS S3 Static Hosting

Apply bucket policy to allow public access when hosting a static website on S3 buckets.

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