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 goyun.infowhich 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:::goyun.info/*"
}
]
}
Also grant everyone List and View permissions in properties.

Comments

Popular posts from this blog

Check MySQL query history from command line

Installing chocolatey on Windows