Access Denied error when trying to access domain

0 votes

Hi.

I registered a domain on Amazon, set up route53, cloudfront and S3.

After I did all this, this page domainname.com/index.html is available, but the domain itself is unavailable.

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>8BF90CD4DB079C80</RequestId>
<HostId>
UTb+3WZ4pCpkDVJ8v/El9MiykZ1QliAIex3bxJxO3OMG0HVVf8ZSPGcQwKrsZJT2p8a4PV8t064=
</HostId>
</Error>
Aug 28, 2019 in AWS by Aleesha
2,262 views

1 answer to this question.

0 votes

AWS appears to have added a new "Block public access" at the account level with the default set to Block all public access to the entire account. This will override the "Block public access" level settings at bucket level.

1. At the Top left, click on "Amazon S3
2. On the left menu, click on "Block public access (account settings)"
3. Click on Edit
4. Disable "Block all public access"
5. Click on your bucket "charity-fund.co.uk"
6. Click on Permissions tab
7. If "Block all public access" is set to On, then click 'Edit', disable 'Block all public access', and click 'Save'
8. Click on Bucket Policy
9. If the policy does NOT exist, Add the policy:

{
   "Version":"2012-10-17",
   "Statement":[
      {
         "Sid":"PublicReadGetObject",
         "Effect":"Allow",
         "Principal":"*",
         "Action":[
            "s3:GetObject"
         ],
         "Resource":[
            "arn:aws:s3:::charity-fund.co.uk/*"
         ]
      }
   ]
}
answered Aug 28, 2019 by Randy

Related Questions In AWS

0 votes
1 answer

"access denied" error when trying to move a file into the AWS server.

Hi@akhtar, I think you are trying to transfer file to ...READ MORE

answered Apr 2, 2020 in AWS by MD
• 95,460 points
1,696 views
0 votes
1 answer
0 votes
1 answer

AWS Access Key error when uploading to S3

You can try getting creating a new ...READ MORE

answered Feb 6, 2019 in AWS by Priyaj
• 58,020 points
6,440 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP