Search code examples
amazon-web-servicesamazon-ec2amazon-elastic-beanstalkamazon-route53

Cannot route traffic to AWS Elastic Beanstalk environment using Route 53 and custom domain under the same account of AWS


I have been trying to host our php website using Elastic Beanstalk however I had no luck under Hosted Zones. Domain is registered with the same AWS account.

Things I did:

  • Created a hosted zone named mycustomdomain.com
  • Created a A type record set with ALIAS to my environment. (Selected through drop down of AWS itself.)

The domain name of EB Environment

environmentname.randomclashofcharacters.region.elasticbeanstalk.com

assigned by AWS works flawlessly so I can say that there is nothing wrong with the config at Elastic Beanstalk side of things.

I followed through the guide uploaded by AWS themselves

I see one weird thing that might be causing that. The name servers listed under domain name is different from ones listed in Hosted Zone. Should I change them. AWS guide doesn't says to do so, so I didn't do it.

Thanks for your help beforehand.

Cheers,

~bio


Solution

  • Thanks to corrective help from @heplalump the problem is resolved. I actually needed to make domain's name-servers same with the hosted zones. Still cannot reach from desktop Safari but reachable via chrome and iPhone safari. If you want to do this procedure for yourself just follow the guide amazon provided.