Sep 19, 2018

How to set up Amazon AWS S3 Static Website Hosting - Enable permission

To enable permission for Amazon AWS S3 Static Website Hosting:

After you enable Static Website Hosting for your S3 bucket, you need to give the objects  s3:GetObject permission for it to work.

For example, the following allow everyone to have s3:GetObject permission to bucket it.i88.cawhich is very common for public static hosting.

{
 "Version": "2008-10-17",
 "Id": "Policy1407788858888",
 "Statement": [
  {
   "Sid": "Stmt1407788848888",
   "Effect": "Allow",
   "Principal": {
    "AWS": "*"
   },
   "Action": "s3:GetObject",
   "Resource": "arn:aws:s3:::it.i88.ca/*"
  }
 ]
}


Also grant everyone List and View permissions in properties.