Skip to content

Commit

Permalink
fix bug for gvisor on, bastion off configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 committed Jul 22, 2019
1 parent 3f4a722 commit b882226
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b882226

Please sign in to comment.