title: Static web hosting on AWS S3 giving me "403 permission denied"
body: <p>I will appreciate if anyone can point me out where I'm doing wrong. see below steps </p>
  
  <ol>
  <li><p>I have a domain name in route53.</p></li>
  <li><p>Based on the domain name, I have created a bucket name ( for sake of my question lets stick to bucket and domain name as abc.nl) </p></li>
  <li>Created the bucket, without changing any default provided check-list. </li>
  <li>Clicked the bucket(abc.nl) and added below "bucket policy" </li>
  </ol>
  
  <pre><code>{
      "Version": "2012-10-17",
      "Statement": [
          {
              "Sid": "PublicReadGetObject",
              "Effect": "Allow",
              "Principal": {
                  "AWS": "arn:aws:iam::1234567:user/usrname"
              },
              "Action": "s3:GetObject",
              "Resource": "arn:aws:s3:::abc.nl/*"
          }
      ]
  }
  </code></pre>
  
  <ol start="5">
  <li>I have provided my <code>username</code>  policy of <code>AmazonS3FullAccess</code> in IAM.</li>
  <li>My Block public access (account settings) also unchanged. 
  <a href="https://i.stack.imgur.com/4RhM1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4RhM1.png" alt="Block public access (account settings)"></a> </li>
  <li>Now I uploaded my all static files to the bucket(abc.nl). </li>
  <li>In properties tab, I have added <code>index.html</code> under <code>static website hosting</code> block.</li>
  </ol>
  
  <p>Now, as per the manual, I should able to click the link and access the page.
  But for some reason, it's throwing me 403 access forbidden error.</p>
  
  <p>In my understanding, by simply adding <code>bucket policy</code> you turn on public access. But for me, I don't see "public" tag. So, don't know what's going on. (My understanding could be wrong, hence this post.)</p>
  
  <p>In case you are wondering which manual, I'm following, <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html" rel="noreferrer">https://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html</a><a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html" rel="noreferrer">how to host static web site</a>.</p>
  
  <p>Anyway, anyone points me out, where I'm doing wrong and which options should I choose from the permissions for the bucket? I could be missing out some lines.</p>
  
  <p>PS: I have created and deleted the same bucket multiple times, just to start fresh every time. </p>