Permissions for static website on S3 bucket

1- Open your S3 bucket and choose the Permissions tab.
2- Under Block public access (bucket settings), choose Edit.
3- Clear Block all public access and choose Save changes.

4- Choose the Permissions tab.
5- Under Bucket Policy, choose Edit.
6- To grant public read access to your website, paste this policy into the Bucket policy editor:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::Bucket-Name/*"
]
}
]
}
7- Replace “Bucket-Name” in "arn:aws:s3:::Bucket-Name/*" with your bucket name.


