How to link godaddy domain with AWS Elastic Beanstalk environment?

No need to create a CNAME or do any forwarding – this is bad from the point of SEO and not recommended by Amazon. Even you should not point a record to IP directly – it will cause a lot of troubles in the future because IP can be changed any moment.

The most elegant way is to migrate DNS service from GoDaddy to Route 53. You still will be with GoDaddy, but handling requests for your site will be on Amazon’s side.

Here is what you need to do:

  1. Create a new Hosted Zone for your site in Route 53 console:
    enter image description here

  2. Open newly added domain name, find NS record and copy servers:
    enter image description here

  3. In GoDaddy’s Domain Manager export records via “Export Zone File (Windows)”.

  4. Import those records to Route 53 (“Import Zone File” button).

  5. In GoDaddy’s Domain Manager set custom DNS nameservers, obtained on the 2nd step:
    enter image description here

Migrating might take some time (even days).
Now you can link you domain with your Elastic Beanstalk site. To do so select/create proper A record type in Route 53 and set Alias for it:
enter image description here

Hope it helps.

Leave a Comment