Target Group
Backend pool for ALB/NLB.
Configuration
Section titled “Configuration”| Setting | Type | Required | Default |
|---|---|---|---|
| Target group name | Text | Yes | — |
| Protocol Options: HTTP, HTTPS, TCP, TLS, UDP, TCP+UDP, GENEVE | Choice | — | HTTP |
| Protocol version (ALB) Options: HTTP/1.1, HTTP/2, gRPC | Choice | — | HTTP1 |
| Port | Number | Yes | 80 |
| Target type Options: Instance, IP address, Lambda, ALB | Choice | — | instance |
| IP address type Options: IPv4, IPv6 | Choice | — | ipv4 |
| Health check path | Text | — | /health |
| Health check interval (s) | Number | — | 30 |
| Health check timeout (s) | Number | — | 5 |
| Healthy threshold | Number | — | 5 |
| Unhealthy threshold | Number | — | 2 |
| Health check protocol Options: HTTP, HTTPS, TCP | Choice | — | HTTP |
| Health check port | Text | — | traffic-port |
| Healthy HTTP codes | Text | — | 200 |
| Deregistration delay (s) | Number | — | 300 |
| Stickiness enabled | Toggle | — | false |
| Stickiness type Options: LB cookie (ALB), App cookie (ALB), Source IP (NLB) | Choice | — | lb_cookie |
| Cookie duration (s) | Number | — | 86400 |
| App cookie name | Text | — | — |
| LB algorithm Options: Round robin, Least outstanding requests, Weighted random | Choice | — | round_robin |
| Preserve client IP (NLB) | Toggle | — | true |
| Connection termination on dereg | Toggle | — | false |
| Slow start (s) | Number | — | 0 |
| Proxy protocol v2 (NLB) | Toggle | — | false |
| Tags | Key–value | — | — |
Connections
Section titled “Connections”| Socket | Direction | Accepts | Terraform arg |
|---|---|---|---|
| Load balancer | Input | any | — |
| VPC | Input | aws.vpc | vpc_id |
| Members | Output | any | — |