samedi 12 mai 2018

How do you host AWS S3 website with a GoDaddy domain?

I have followed a selection of tutorials on how to set up a static website with Amazon Web Services. However, I am now encountering a few problems when trying to link it to my GoDaddy domain.

  • I have created two buckets: example.com & www.example.com: 2 created buckets

  • www.example.com redirects to example.com: www.example.com bucket

  • My example.com bucket has a basic webpage: example.com bucket

  • The properties are such: bucket properties

  • The permissions are such: enter image description here

  • My bucket policy is:

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Sid": "PublicReadGetObject",
                "Effect": "Allow",
                "Principal": "*",
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::example.com/*"
            }
        ]
    }
    
    
  • Each file is public: enter image description here

  • On Route 53, I have created one hosted zone called example.com: Hosted zones

  • The record sets are such: Record sets

  • On GoDaddy I have added the DNS like so: GoDaddy Manage DNS

  • I ran dig +recurse +trace example.com any: enter image description here

  • I pinged the url:

    [In] :  ping example.com
    .....:  64 bytes from 52.95.149.7: icmp_seq=0 ttl=52 time=55.722 ms
    
    

52.95.149.7 is https://aws.amazon.com/s3/

If I go to example.com I get returned with a timeout error (ERR_CONNECTION_TIMED_OUT) and I can't work out what I'm doing wrong. Any help would be much appreciated. If you need more details for diagnosis let me know.

I have tried to protect my privacy as best as I can. Let me know if I have accidentally disclosed anything sensitive or if important information has been censored.




Aucun commentaire:

Enregistrer un commentaire