Skip to content

Commit 1823c36

Browse files
authored
Merge pull request #14 from FairwindsOps/mg/update-nat-router
Mg/update nat router
2 parents f092c62 + f745150 commit 1823c36

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

default/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 2.2.2
8+
9+
### Added
10+
* added variable for `cloud_nat_tcp_transitory_idle_timeout_sec`
711
## 2.2.1
812

913
### Fixed

default/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ variable "cloud_nat_min_ports_per_vm" {
5252
default = 64
5353
}
5454

55+
variable "cloud_nat_tcp_transitory_idle_timeout_sec" {
56+
# https://cloud.google.com/nat/docs/overview#specs-timeouts
57+
description = "Timeout in seconds for TCP transitory connections."
58+
type = number
59+
default = 30
60+
}
61+
5562
variable "cloud_nat_log_config_filter" {
5663
description = "Specifies the desired filtering of logs on this NAT"
5764
default = null
@@ -123,6 +130,7 @@ resource "google_compute_router_nat" "nat_router" {
123130
nat_ips = local.nat_ips
124131
min_ports_per_vm = var.cloud_nat_min_ports_per_vm
125132
source_subnetwork_ip_ranges_to_nat = "ALL_SUBNETWORKS_ALL_IP_RANGES"
133+
tcp_transitory_idle_timeout_sec = var.cloud_nat_tcp_transitory_idle_timeout_sec
126134

127135
log_config {
128136
enable = var.cloud_nat_log_config_filter == null ? false : true

0 commit comments

Comments
 (0)