@@ -27,13 +27,13 @@ resource "google_compute_router_nat" "nats" {
2727 nat_ip_allocate_option = lookup (each. value , " nat_ip_allocate_option" , length (lookup (each. value , " nat_ips" , [])) > 0 ? " MANUAL_ONLY" : " AUTO_ONLY" )
2828 source_subnetwork_ip_ranges_to_nat = lookup (each. value , " source_subnetwork_ip_ranges_to_nat" , " ALL_SUBNETWORKS_ALL_IP_RANGES" )
2929
30- nat_ips = lookup (each. value , " nat_ips" , [] )
31- min_ports_per_vm = lookup (each. value , " min_ports_per_vm" , 0 )
32- udp_idle_timeout_sec = lookup (each. value , " udp_idle_timeout_sec" , 30 )
33- icmp_idle_timeout_sec = lookup (each. value , " icmp_idle_timeout_sec" , 30 )
34- tcp_established_idle_timeout_sec = lookup (each. value , " tcp_established_idle_timeout_sec" , 1200 )
35- tcp_transitory_idle_timeout_sec = lookup (each. value , " tcp_transitory_idle_timeout_sec" , 30 )
36- enable_endpoint_independent_mapping = lookup (each. value , " enable_endpoint_independent_mapping" , true )
30+ nat_ips = lookup (each. value , " nat_ips" , null )
31+ min_ports_per_vm = lookup (each. value , " min_ports_per_vm" , null )
32+ udp_idle_timeout_sec = lookup (each. value , " udp_idle_timeout_sec" , null )
33+ icmp_idle_timeout_sec = lookup (each. value , " icmp_idle_timeout_sec" , null )
34+ tcp_established_idle_timeout_sec = lookup (each. value , " tcp_established_idle_timeout_sec" , null )
35+ tcp_transitory_idle_timeout_sec = lookup (each. value , " tcp_transitory_idle_timeout_sec" , null )
36+ enable_endpoint_independent_mapping = lookup (each. value , " enable_endpoint_independent_mapping" , null )
3737
3838 log_config {
3939 enable = true
@@ -45,7 +45,7 @@ resource "google_compute_router_nat" "nats" {
4545 content {
4646 name = subnetwork. value . name
4747 source_ip_ranges_to_nat = subnetwork. value . source_ip_ranges_to_nat
48- secondary_ip_range_names = lookup (subnetwork. value , " secondary_ip_range_names" , [] )
48+ secondary_ip_range_names = lookup (subnetwork. value , " secondary_ip_range_names" , null )
4949 }
5050 }
5151}
0 commit comments