Target Group
A target group is a way to direct requests to one or more registered targets, such as EC2 instances, using the protocol and port number specified. Target groups are used to configure health checks and ensure requests are routed only to healthy instances. For more detailed information, please refer to the official AWS documentation.
Terraform Mappings:
aws_alb_target_group.arn
aws_lb_target_group.arn
Supported Methods​
GET
: Get a target group by nameLIST
: List all target groupsSEARCH
: Search for target groups by load balancer ARN or target group ARN
Possible Links​
ec2-vpc
​
A target group is usually associated with an EC2-VPC as the targets (such as EC2 instances) registered under the target group typically reside within a specific VPC to ensure network accessibility and communication.
elbv2-load-balancer
​
A target group is linked to an ELBv2 load balancer as it is used to define how the load balancer routes requests to the registered targets. Essentially, the target group works in conjunction with the load balancer to distribute incoming application or network traffic.
elbv2-target-health
​
The target health of a registered target within a target group is assessed using health checks. The elbv2-target-health
resource gives insights into the health of each target, ensuring that only healthy targets receive traffic routed by the load balancer.