module "target_group" {
source = "github.com/bryan-rhm/terraform-aws-alb-target-group?ref=v1.0.0"
name = "my-target"
vpc_id = var.vpc_id
target_type = "ip"
stickiness = {
type = "lb_cookie"
}
}
Name | Version |
---|---|
terraform | >= 1.0.4 |
aws | >= 3.43.0 |
Name | Version |
---|---|
aws | 3.71.0 |
No modules.
Name | Type |
---|---|
aws_lb_target_group.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
health_check | Health Check configuration block. | object({ |
null |
no |
name | (Optional, Forces new resource) Name of the target group. If omitted, Terraform will assign a random, unique name. | string |
null |
no |
name_prefix | (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts with name. Cannot be longer than 6 characters. | string |
null |
no |
port | Port on which targets receive traffic, unless overridden when registering a specific target. | number |
80 |
no |
protocol | Should be one of GENEVE, HTTP, HTTPS, TCP, TCP_UDP, TLS, or UDP | string |
"HTTP" |
no |
stickiness | Stickiness configuration block. | object({ |
null |
no |
tags | A map of tags to assign to the target group. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level. | map(any) |
null |
no |
target_type | Type of target that you must specify when registering targets with this target group. Valid values: ip|instance|lambda | string |
"instance" |
no |
vpc_id | Identifier of the VPC in which to create the target group. Required when target_type is instance or ip | string |
null |
no |
Name | Description |
---|---|
output | Target group attributes |