diff --git a/modules/net-cloudnat/README.md b/modules/net-cloudnat/README.md
index 64ccdcc0..db6d4ddd 100644
--- a/modules/net-cloudnat/README.md
+++ b/modules/net-cloudnat/README.md
@@ -62,26 +62,25 @@ module "nat" {
}
# tftest modules=2 resources=5 inventory=rules.yaml e2e
```
-
## Variables
| name | description | type | required | default |
|---|---|:---:|:---:|:---:|
-| [name](variables.tf#L63) | Name of the Cloud NAT resource. | string
| ✓ | |
-| [project_id](variables.tf#L68) | Project where resources will be created. | string
| ✓ | |
-| [region](variables.tf#L73) | Region where resources will be created. | string
| ✓ | |
+| [name](variables.tf#L64) | Name of the Cloud NAT resource. | string
| ✓ | |
+| [project_id](variables.tf#L69) | Project where resources will be created. | string
| ✓ | |
+| [region](variables.tf#L74) | Region where resources will be created. | string
| ✓ | |
| [addresses](variables.tf#L17) | Optional list of external address self links. | list(string)
| | []
|
| [config_port_allocation](variables.tf#L23) | Configuration for how to assign ports to virtual machines. min_ports_per_vm and max_ports_per_vm have no effect unless enable_dynamic_port_allocation is set to 'true'. | object({…})
| | {}
|
| [config_source_subnets](variables.tf#L39) | Subnetwork configuration (ALL_SUBNETWORKS_ALL_IP_RANGES, ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, LIST_OF_SUBNETWORKS). | string
| | "ALL_SUBNETWORKS_ALL_IP_RANGES"
|
-| [config_timeouts](variables.tf#L45) | Timeout configurations. | object({…})
| | {}
|
-| [logging_filter](variables.tf#L57) | Enables logging if not null, value is one of 'ERRORS_ONLY', 'TRANSLATIONS_ONLY', 'ALL'. | string
| | null
|
-| [router_asn](variables.tf#L78) | Router ASN used for auto-created router. | number
| | null
|
-| [router_create](variables.tf#L84) | Create router. | bool
| | true
|
-| [router_name](variables.tf#L90) | Router name, leave blank if router will be created to use auto generated name. | string
| | null
|
-| [router_network](variables.tf#L96) | Name of the VPC used for auto-created router. | string
| | null
|
-| [rules](variables.tf#L102) | List of rules associated with this NAT. | list(object({…}))
| | []
|
-| [subnetworks](variables.tf#L113) | Subnetworks to NAT, only used when config_source_subnets equals LIST_OF_SUBNETWORKS. | list(object({…}))
| | []
|
+| [config_timeouts](variables.tf#L45) | Timeout configurations. | object({…})
| | {}
|
+| [logging_filter](variables.tf#L58) | Enables logging if not null, value is one of 'ERRORS_ONLY', 'TRANSLATIONS_ONLY', 'ALL'. | string
| | null
|
+| [router_asn](variables.tf#L79) | Router ASN used for auto-created router. | number
| | null
|
+| [router_create](variables.tf#L85) | Create router. | bool
| | true
|
+| [router_name](variables.tf#L91) | Router name, leave blank if router will be created to use auto generated name. | string
| | null
|
+| [router_network](variables.tf#L97) | Name of the VPC used for auto-created router. | string
| | null
|
+| [rules](variables.tf#L103) | List of rules associated with this NAT. | list(object({…}))
| | []
|
+| [subnetworks](variables.tf#L114) | Subnetworks to NAT, only used when config_source_subnets equals LIST_OF_SUBNETWORKS. | list(object({…}))
| | []
|
## Outputs
diff --git a/modules/net-cloudnat/main.tf b/modules/net-cloudnat/main.tf
index 6d1da01d..b9c4eab4 100644
--- a/modules/net-cloudnat/main.tf
+++ b/modules/net-cloudnat/main.tf
@@ -48,6 +48,7 @@ resource "google_compute_router_nat" "nat" {
icmp_idle_timeout_sec = var.config_timeouts.icmp
udp_idle_timeout_sec = var.config_timeouts.udp
tcp_established_idle_timeout_sec = var.config_timeouts.tcp_established
+ tcp_time_wait_timeout_sec = var.config_timeouts.tcp_time_wait
tcp_transitory_idle_timeout_sec = var.config_timeouts.tcp_transitory
enable_endpoint_independent_mapping = var.config_port_allocation.enable_endpoint_independent_mapping
enable_dynamic_port_allocation = var.config_port_allocation.enable_dynamic_port_allocation
diff --git a/modules/net-cloudnat/variables.tf b/modules/net-cloudnat/variables.tf
index ed2649aa..599bce1a 100644
--- a/modules/net-cloudnat/variables.tf
+++ b/modules/net-cloudnat/variables.tf
@@ -47,6 +47,7 @@ variable "config_timeouts" {
type = object({
icmp = optional(number, 30)
tcp_established = optional(number, 1200)
+ tcp_time_wait = optional(number, 120)
tcp_transitory = optional(number, 30)
udp = optional(number, 30)
})