Skip to content

Commit fdd1250

Browse files
authored
feat(TPG >=4.51)!: add support for NAT tcp wait timeout (#64)
1 parent 9f62f84 commit fdd1250

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

nat.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ resource "google_compute_router_nat" "nats" {
3434
icmp_idle_timeout_sec = lookup(each.value, "icmp_idle_timeout_sec", null)
3535
tcp_established_idle_timeout_sec = lookup(each.value, "tcp_established_idle_timeout_sec", null)
3636
tcp_transitory_idle_timeout_sec = lookup(each.value, "tcp_transitory_idle_timeout_sec", null)
37+
tcp_time_wait_timeout_sec = lookup(each.value, "tcp_time_wait_timeout_sec", null)
3738
enable_endpoint_independent_mapping = lookup(each.value, "enable_endpoint_independent_mapping", null)
3839
enable_dynamic_port_allocation = lookup(each.value, "enable_dynamic_port_allocation", null)
3940

variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ variable "bgp" {
6868
# - icmp_idle_timeout_sec (number, optional): Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
6969
# - tcp_established_idle_timeout_sec (number, optional): Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
7070
# - tcp_transitory_idle_timeout_sec (number, optional): Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
71+
# - tcp_time_wait_timeout_sec (number, optional): Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not set.
7172
# - log_config (object, optional):
7273
# - filter: Specifies the desired filtering of logs on this NAT. Defaults to "ALL".
7374
# - subnetworks (list(objects), optional):

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ terraform {
2020

2121
google = {
2222
source = "hashicorp/google"
23-
version = ">= 4.27, < 5.0"
23+
version = ">= 4.51, < 5.0"
2424
}
2525
}
2626

0 commit comments

Comments
 (0)