From b88222699d2a5b457d886483f3bb22d9f05f3e3a Mon Sep 17 00:00:00 2001 From: Steven Miller Date: Mon, 22 Jul 2019 20:34:35 +0000 Subject: [PATCH] fix bug for gvisor on, bastion off configuration --- network.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/network.tf b/network.tf index 19e17ae..ae45529 100644 --- a/network.tf +++ b/network.tf @@ -67,13 +67,12 @@ resource "google_compute_router_nat" "nat" { } dynamic subnetwork { - for_each = var.enable_gvisor ? ["placeholder"] : [] + for_each = var.management_endpoint == "public" ? [] : ["placeholder"] content { name = google_compute_subnetwork.bastion[0].self_link source_ip_ranges_to_nat = ["ALL_IP_RANGES"] } } - } # https://cloud.google.com/vpc/docs/configure-private-services-access#creating-connection