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?
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: