0
votes

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

1
Yes... You need to change the name servers of the domain to the ones in the NS record of the hosted zone. - hephalump
@hephalump Should I request the change of DNS from registered domains selection or should I change the NS record under the hosted zone. - biozalp
Go to the registered domain settings and update them there. - hephalump
@hephalump Thanks for the answer, I just updated them and they are identical now. But cannot still access the Elastic Beanstalk with custom domain. Should I wait for a while for name servers? - biozalp
Yes. Propagation can take up to 48 house, but usually is live within ~15 mins. - hephalump

1 Answers

0
votes

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.