Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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! :(

like image 671
LittleLebowski Avatar asked Mar 23 '13 13:03

LittleLebowski


1 Answers

  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.

like image 81
kross Avatar answered Oct 17 '22 23:10

kross