Load balancing across different Elastic Beanstalk applications

后端 未结 3 1946
闹比i
闹比i 2020-12-14 04:12

In my AWS environment there are some load balanced / autoscaled Elastic Beanstalk applications.

I would like to have a load balancer in front of them, so any reques

3条回答
  •  旧时难觅i
    2020-12-14 05:05

    I just managed to do it, following the instructions in this article https://aws.amazon.com/blogs/devops/introducing-application-load-balancer-unlocking-and-optimizing-architectures/

    the steps:

    1) create a new target group

        aws elbv2 create-target-group --name  --protocol HTTP --port 80 --vpc-id  
    

    2) bind your target group to the autoscaling group associated to the app

        aws autoscaling attach-load-balancer-target-groups --auto-scaling-group-name  --target-group-arns ""
    

    3) create a new rule in the main application load balancer, that routes the desired path to the right application (this can be done through the UI).

提交回复
热议问题