Elastic Load Balancing Target Group

An Elastic Load Balancing Target Group in AWS is a logical grouping of targets, such as EC2 instances, IP addresses, or Lambda functions, that receive traffic from a load balancer. It defines how requests are routed, including protocol, port, and health check settings. Target groups enable flexible traffic distribution and monitoring, allowing you to direct requests to specific application components and ensure only healthy targets receive traffic.

aws.elbv2_target_group

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
health_check_enabledcoreboolIndicates whether health checks are enabled.
health_check_interval_secondscoreint64The approximate amount of time, in seconds, between health checks of an individual target.
health_check_pathcorestringThe destination for health checks on the targets.
health_check_portcorestringThe port to use to connect with the target.
health_check_protocolcorestringThe protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.
health_check_timeout_secondscoreint64The amount of time, in seconds, during which no response means a failed health check.
healthy_threshold_countcoreint64The number of consecutive health checks successes required before considering an unhealthy target healthy.
ip_address_typecorestringThe IP address type. The default value is ipv4.
load_balancer_arnscorearray<string>The Amazon Resource Name (ARN) of the load balancer that routes traffic to this target group. You can use each target group with only one load balancer.
matchercorejsonThe HTTP or gRPC codes to use when checking for a successful response from a target.
portcoreint64The port on which the targets are listening. This parameter is not used if the target is a Lambda function.
protocolcorestringThe protocol to use for routing traffic to the targets.
protocol_versioncorestring[HTTP/HTTPS protocol] The protocol version. The possible values are GRPC, HTTP1, and HTTP2.
tagscorehstore
target_group_arncorestringThe Amazon Resource Name (ARN) of the target group.
target_group_namecorestringThe name of the target group.
target_health_descriptionscorejsonInformation about the health of the targets.
target_typecorestringThe type of target that you must specify when registering targets with this target group. The possible values are instance (register targets by instance ID), ip (register targets by IP address), lambda (register a single Lambda function as a target), or alb (register a single Application Load Balancer as a target).
unhealthy_threshold_countcoreint64The number of consecutive health check failures required before considering the target unhealthy.
vpc_idcorestringThe ID of the VPC for the targets.