Skip to content

Commit f092c62

Browse files
authored
Merge pull request #13 from FairwindsOps/additional-cloud-nat-params
bug fix for cloud nat logging
2 parents e1bdadf + cd3847f commit f092c62

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

default/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ 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.1
8+
9+
### Fixed
10+
* updated the log_config logic to prevent changes on each run
11+
712
## 2.2.0
813

914
### Added

default/main.tf

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,9 @@ resource "google_compute_router_nat" "nat_router" {
124124
min_ports_per_vm = var.cloud_nat_min_ports_per_vm
125125
source_subnetwork_ip_ranges_to_nat = "ALL_SUBNETWORKS_ALL_IP_RANGES"
126126

127-
dynamic "log_config" {
128-
for_each = var.cloud_nat_log_config_filter == null ? [] : list(true)
129-
content {
130-
enable = var.cloud_nat_log_config_filter == null ? false : true
131-
filter = var.cloud_nat_log_config_filter
132-
}
127+
log_config {
128+
enable = var.cloud_nat_log_config_filter == null ? false : true
129+
filter = var.cloud_nat_log_config_filter == null ? "ALL" : var.cloud_nat_log_config_filter
133130
}
134131
}
135132

0 commit comments

Comments
 (0)