I've created a Network Load balancer and a target group. Then I try to create a listener for the load balancer, but the target group is showing up as "Not available" in the pulldown menu.
What can be my next step to debug this? Much appreciate the help.
Picture: https://ibin.co/w800/3vKxtcYYs3mg.jpg
In the navigation pane, under Load Balancing, choose Target Groups. Choose Create target group. For Choose a target type, select Instances to register targets by instance ID; IP addresses to register targets by IP address; or Application Load Balancer to register an Application Load Balancer as a target.
Yes, the load balancer is an EC2 instance to provide the networking and compute services needed for load balancing. This also means that there is a per hour charge for the load balancer EC2 instance. A Target Group is used to route requests to one or more registered targets (your backed EC2 instances).
You can specify up to 10 target groups. To get the ARN of a target group, use the Elastic Load Balancing DescribeTargetGroups API operation.
A target group tells a load balancer where to direct traffic to : EC2 instances, fixed IP addresses; or AWS Lambda functions, amongst others. When creating a load balancer, you create one or more listeners and configure listener rules to direct the traffic to one target group.
The UI appears to have changed, but I had a similar problem (NLB showing an unassigned target group grayed out in the listener's dropdown). When starting over, I had to make sure that the target group protocol was TCP or whichever protocol the balancer would be forwarding to.
The Add Listener page also has Protocol and Port fields, and any groups with the wrong protocol were unavailable. Selecting an available target group and then changing to a different protocol caused the page to show an error like "TCP_UDP listeners cannot forward traffic to TCP target groups. You must select a compatible target group or change the listener protocol."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With