Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elastic Beanstalk's Elastic Load Balancer name

I have created a new Elastic Beanstalk application on AWS. I have to use a CNAME to redirect traffic to the end point of the Elastic Load Balancer through a DNS managed by Network Solutions, and they have size restrictions on the length of the CNAME target. It would appear that Elastic Beanstalk chooses very large random names for their load balancers.

  1. Is there a way to rename a load balancer?
  2. Is there a way to specify the load balancer name at Elastic Beanstalk initialization?
  3. If I just create a new load balancer is there a way to add it to my Elastic Beanstalk environment?
like image 599
Jon Avatar asked Aug 08 '13 15:08

Jon


1 Answers

Unfortunately the answer is no to the first 2.

The last one, you are able to do it, but it more or less goes against the flow of Elastic beanstalk. You would need to create your own ELB with whatever name you like and then put it in front ot the instance that is created by beanstalk. You would need need to delete the ELB that beanstalk created so that it's not sitting there costing you money.

I can't remember if beanstalk boots its environments via an AutoScaling group, but if it does, you'll need to associate that AutoScaling group with your new ELB.

After creating and syncing all of that up, you need to point your CNAME to your new custom made ELB.

That should work.

like image 100
BrianJakovich Avatar answered Nov 14 '22 06:11

BrianJakovich