yzhtiq
Last Updated: November 15, 2016
·
24
· Cukal

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>/*"
        }
    ]
}
Say Thanks
Respond