Skip to content

Commit 33b6ecd

Browse files
authored
feat: Added connection_termination toggle to target group (#257)
1 parent a141aac commit 33b6ecd

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

examples/complete-nlb/main.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,12 @@ module "nlb" {
107107

108108
target_groups = [
109109
{
110-
name_prefix = "tu1-"
111-
backend_protocol = "TCP_UDP"
112-
backend_port = 81
113-
target_type = "instance"
114-
preserve_client_ip = true
110+
name_prefix = "tu1-"
111+
backend_protocol = "TCP_UDP"
112+
backend_port = 81
113+
target_type = "instance"
114+
connection_termination = true
115+
preserve_client_ip = true
115116
tags = {
116117
tcp_udp = true
117118
}

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ resource "aws_lb_target_group" "main" {
7070
protocol_version = lookup(var.target_groups[count.index], "protocol_version", null) != null ? upper(lookup(var.target_groups[count.index], "protocol_version")) : null
7171
target_type = lookup(var.target_groups[count.index], "target_type", null)
7272

73+
connection_termination = lookup(var.target_groups[count.index], "connection_termination", null)
7374
deregistration_delay = lookup(var.target_groups[count.index], "deregistration_delay", null)
7475
slow_start = lookup(var.target_groups[count.index], "slow_start", null)
7576
proxy_protocol_v2 = lookup(var.target_groups[count.index], "proxy_protocol_v2", false)

0 commit comments

Comments
 (0)