Skip to content

Commit

Permalink
private_zonal_with_networking: Remove old way of waiting for network …
Browse files Browse the repository at this point in the history
…to be created first

Signed-off-by: Dev <Dev25@users.noreply.github.com>
  • Loading branch information
Dev25 committed Apr 10, 2020
1 parent 018a9d3 commit a4fbc49
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/private_zonal_with_networking/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,8 @@ module "gke" {
region = var.region
zones = slice(var.zones, 0, 1)

// This craziness gets a plain network name from the reference link which is the
// only way to force cluster creation to wait on network creation without a
// depends_on link. Tests use terraform 0.12.6, which does not have regex or regexall
network = reverse(split("/", data.google_compute_subnetwork.subnetwork.network))[0]

subnetwork = data.google_compute_subnetwork.subnetwork.name
network = module.gcp-network.network_named
subnetwork = module.gcp-network.subnets_names[0]
ip_range_pods = var.ip_range_pods_name
ip_range_services = var.ip_range_services_name
create_service_account = true
Expand Down

0 comments on commit a4fbc49

Please sign in to comment.