I am trying to host a public facing static website on AWS S3.
- I logged into the AWS console from my root account
- Created a new bucket and uploaded few static HTML files
- Under {Bucket-name}->Permissions->Bucket Policy, I have provided the below policy
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": "", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::[my-bucket-name]/" } ] }
I keep getting the Access denied error.

arn:aws:s3:::[my-bucket-name]/*, though I'd advice using a GUI option on the bucket to host a website, the gui should set the correct policy for you - gusto2