LittleLebowski
LittleLebowski

Reputation: 7941

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

Upvotes: 6

Views: 12510

Answers (2)

atazmin
atazmin

Reputation: 5667

From GoDaddy (probably not best way) seem to work for me.

  1. cname www MYENVIRONMENT.elasticbeanstalk.com
  2. Forwarding feature: forward to: www.MYDOMAIN.com (Type: Permanent: 301, Settings: Forward only)

I guess the way it work MYDOMAIN.com forwards to 1) www then www goes to MYENVIRONMENT.elasticbeanstalk.com

Upvotes: 0

kross
kross

Reputation: 3753

  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.

Upvotes: 12

Related Questions