Sébastien Coste
Sébastien Coste

Reputation: 309

AWS: I can't link my route 53 configuration to my S3 bucket

I have 2 route53 hosted zone, let's call them myfirsturl.com and mysecondurl.com. For both of them, I have created a bucket in S3 named after my domain names. I have verified it multiple times letter by letter. Both of my buckets have static content, available from the S3 endpoint, with the fine policy etc: the 2 endpoints work perfectly.

The 1st hosted zone has been bought in route53 and when I connect to it, it opens my static website, all is good. My second domain name has been transferred to Amazon last month, and in route 53 I can find the S3 bucket in the list of targets when I create the recordset, but it doesn't reach the static website

Another point: I have created a WP site a few days ago, behind a load balancer etc, and I linked wp.myfirsturl.com to it: it worked perfectly I tried the same with wp.mysecondurl.com, to the same load balancer, it never worked.

I can't find any idea has I can't see any difference between my 2 domain name, except where I bought it.

Another difference:
The 1st is something like sometexte.info
The 2nd is something like sometext-othertext.fr

Maybe the hyphen is a problem? (it's not, pertaining to the doc)

Someone has a lead, please?

Upvotes: 1

Views: 1970

Answers (1)

Ashan
Ashan

Reputation: 19728

The bucket must have the same name as your domain or subdomain in Route53. For example, if you want to use the subdomain acme.example.com, the name of the bucket must be acme.example.com. Have a look at this documentation for more information.

Upvotes: 1

Related Questions