How to map custom domain to an AWS Elastic Beanstalk URL?

LittleLebowski picture LittleLebowski · Mar 23, 2013 · Viewed 8.8k times · Source

I'm following the instructions Using Custom Domains with AWS Elastic Beanstalk to map a custom domain to an AWS Elastic Beanstalk URL.

My Elastic Beanstalk URL is as follows:

http://myenvironment-specific-string.elasticbeanstalk.com/

I've created a CNAME record that says:

www.example.com     myenvironment-specific-string.elasticbeanstalk.com  8 hrs

I've also looked up the CNAME using MxToolBox' CNAME Lookup tool where it shows it correctly. But when I try www.example.com, it doesn't show up.

Am I missing something? I'm stuck and this is racking my brains apart! Help me! :(

Answer

kross picture kross · Aug 14, 2013
  1. Use Route53
  2. Create a record set with these values:

    Name: www.example.com

    Type: A - IPv4 address

    Alias: Yes

    Alias Target: [click and choose your elastic load balancer]

    Alias Hosted Zone ID: [auto fills in when you choose the above, you can match this to your logs]

Without using Route53, you may be fighting an uphill battle, I'm not sure.