title: Load balancing across different Elastic Beanstalk applications
body: <p>In my AWS environment  there are some load balanced / autoscaled Elastic Beanstalk applications.</p>
  
  <p>I would like to have a load balancer in front of them, so any request to <a href="http://loadbalancer.com/app1" rel="noreferrer">http://loadbalancer.com/app1</a> is routed to the first Elastic Beanstalk app,  <a href="http://loadbalancer.com/app2" rel="noreferrer">http://loadbalancer.com/app2</a> to the second and so on.</p>
  
  <p>I tried to set up an application load balancer with different listeners routing to different target groups. 
  Unfortunately my solution is not ideal, because the target groups are bound to a fixed set of EC2 instances, while I want them to be associated to an environment where instances are created or destroyed on demand </p>
  
  <p>I haven't still found a way of binding an application load balancer's listener to an auto scaling group.</p>
  
  <p>Is there a way of achieving what I want?</p>