Custom URL at AWS Elastic Beanstalk

Alexander G picture Alexander G · Sep 5, 2012 · Viewed 20.4k times · Source

AWS Elastic Beanstalk suggests to use url in the following format: http://{appname}.elasticbeanstalk.com/

But I need to change it to my own url, something like http://appname.com

How to do it?

Answer

Qorbani picture Qorbani · Feb 17, 2013

I know this is old question but since I just done this process for one of my apps, I decided to share it here which may help others too. Note: I use Amazon Route53 for my domain.

  1. Login to your AWS Account
  2. Go to your EC2 Panel and select your region
  3. Select Load Balancer from left navigation menu
  4. Found Load Balancer which related to your Beanstalk App
  5. In Description Tab grab Hosted Zone ID
  6. Open Route53 Panel
  7. Select your domain hosted zone
  8. Add A Record for .YOUR-DOMAIN.com
  9. Select Alias option to Yes
  10. Search for your Load Balancer related to you app
  11. Confirm it's Hosted Zone ID with what you grabbed in step 5
  12. Do steps 8-11 for www.YOUR-DOMAIN.com as well.

References:

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html http://aws.typepad.com/aws/2011/05/moving-ahead-with-amazon-route-53.html