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.info, which is very common for public static hosting.
Also grant everyone List and View permissions in properties.
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.info, which 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/*"
}
]
}
Comments
Post a Comment