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
:
www.example.com
redirects to example.com
:
My example.com
bucket has a basic webpage:
The properties are such:
The permissions are such:
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:
On Route 53, I have created one hosted zone called example.com
:
The record sets are such:
On GoDaddy I have added the DNS like so:
I ran dig +recurse +trace example.com any
:
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With