File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ resource "google_compute_router_nat" "nats" {
4444 content {
4545 name = subnetwork. value . name
4646 source_ip_ranges_to_nat = subnetwork. value . source_ip_ranges_to_nat
47- secondary_ip_range_names = subnetwork. value . secondary_ip_range_names
47+ secondary_ip_range_names = lookup ( subnetwork. value , " secondary_ip_range_names" , [])
4848 }
4949 }
5050}
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ variable "bgp" {
6565# - subnetworks (list(objects), optional):
6666# - name (string, required): Self-link of subnetwork to NAT.
6767# - source_ip_ranges_to_nat (string, required): List of options for which source IPs in the subnetwork should have NAT enabled.
68- # - secondary_ip_range_names (string, required ): List of the secondary ranges of the subnetwork that are allowed to use NAT.
68+ # - secondary_ip_range_names (string, optional ): List of the secondary ranges of the subnetwork that are allowed to use NAT.
6969variable "nats" {
7070 description = " NATs to deploy on this router."
7171 type = any
You can’t perform that action at this time.
0 commit comments