I am trying to add a load balancer to a target group.
In EC2 > Target Groups, I can see my target group that I want to add an existing load balancer to.
So I select "Associate with an existing load balancer" which brings me to this page.
I then select the load balancer... but then what? There's no button that says "Add load balancer to target group". The "Create Load balancer" blue button is there to create a new load balancer (not what I want). It doesn't look like anything in the "Actions" dropdown is appropriate. How can I attach the selected load balancer to the target group?
CodePudding user response:
I agree that the UI in this case is not very self-explanatory. You should read the documentation (e.g. Target groups for your Application Load Balancers) first to get a general understanding of the relationship between a load balancer (LB) and a target group (TG). TL;DR, the TG is not associated to an LB directly. Instead, they are associated via a listener.
A listener is a process that checks for connection requests, using the protocol and port that you configure. The rules that you define for a listener determine how the load balancer routes requests to its registered targets.
Source: Listeners for your Application Load Balancers
Therefore, the correct steps to take after clicking the "Associate with an existing load balancer" are:
- Select a load balancer
- Go to "Listeners" tab
- Either edit an existing listener or add a new listener
- Set rules and conditions, and attach TG