Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 341
Jack Avatar asked Sep 15 '25 05:09

Jack


2 Answers

At first glance, I don't see anything wrong. One thing to try is using a proxy, because sometimes the DNS doesn't propagate though the internet quickly enough for you to see it..

Something like https://kproxy.com works. Just punch in your url there.

The other troubleshooting thing I'll do is use https://www.dnsstuff.com/tools to get an idea about how things are routed.

like image 143
PHS Avatar answered Sep 17 '25 18:09

PHS


Alias doesn't look alright to me. It supposed to be like the below.

www.example.com.s3-website.eu-west-2.amazonaws.com

OR

example.com.s3-website.eu-west-2.amazonaws.com

If you change that, it should work.

Thanks.

like image 28
Arockiasmy K Avatar answered Sep 17 '25 18:09

Arockiasmy K