title: using google domains when hosting static site on aws s3
body: <p>I've set up many static sites on AWS/S3 with other domain registrars; however, google domains is giving me some issues.<br>
  <strong>Steps I've taken:</strong><br>
  -on S3/AWS: </p>
  
  <ol>
  <li>created bucket domainname.org</li>
  <li>enabled static website hosting by adding index.html</li>
  <li>uploaded index.html and related documents to bucket</li>
  <li>create bucket www.domainname.org to redirect to bucket domainname.org</li>
  <li><p>created bucket policy for domainname.org as follows:  </p>
  
  <p>{
      "Version": "2012-10-17",
      "Statement": [
          {
              "Sid": "AddPerm",
              "Effect": "Allow",
              "Principal": "<em>",
              "Action": [
                  "s3:GetObject"
              ],
              "Resource": [
                  "arn:aws:s3:::domainname.org/</em>"
              ]
          }
      ]
  }</p></li>
  </ol>
  
  <p>on google domains side</p>
  
  <ol>
  <li>Created CNAME record with name www and data entry equal to the bucket's endpoint "rightsrequest.org.s3-website-us-west-2.amazonaws.com"</li>
  <li>Set TTL to 60 so I can see changes.</li>
  </ol>
  
  <p>I can see the site at that endpoint but it is not redirecting/mapping to the domainmae.org as expected. Usually, this set-up would be enough with other registrars</p>
  
  <p>What am I missing? How do you properly set up static site hosting on S3/AWS while using google domains ? </p>
  
  <p>Thank you for your help !</p>