3

I have my custom domain xxx.com.pl I would like to run a service on Elastic Beanstalk. How should I configure my domain. Should I use my Elastic Load Balancer DNS:

awseb-e-k-AWSEBLoa-xxx.eu-central-1.elb.amazonaws.com

or environment URL:

xxx.asdasdasda.eu-central-1.elasticbeanstalk.com

If I select environment URL I can always create another environment and use swap URLs for recovery. I cannot do this easy way If I select ELB DNS. Probably usage of ELB DNS is faster. Am I right? What is the best practice?

Marek Raki
  • 3,056
  • 3
  • 27
  • 50

1 Answers1

2

Create a CNAME record to point to the Load Balancer: awseb-e-k-AWSEBLoa-xxx.eu-central-1.elb.amazonaws.com

However if you are using Route 53, create an A record and use Alias=Yes to point to your Elastic Beanstalk app. This type of Alias resolution incurs no charge in Route 53.

Interestingly, AWS Elastic Beanstalk Adds Support for Amazon Route 53 Aliasing suggests that either name is now acceptable.

See:

DT21
  • 1
  • 3
John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
  • 2
    Could someone please elaborate on why you would choose the load balancer over environment url? – super_noobling Feb 23 '18 at 10:41
  • My assumption is that the LB URI can change automatically while the environment URI can only change manually. Hence I would choose the EB URI, not the LB URI. – Manuel Feb 24 '19 at 02:00