From f70e5834d0f7b5ff69401b4c42f55013cec40133 Mon Sep 17 00:00:00 2001 From: Morgante Pell Date: Tue, 29 Oct 2019 16:48:36 -0400 Subject: [PATCH] Revert "Add depends_on to created_subnets data fetch" --- main.tf | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.tf b/main.tf index f0b97325..6fd82bea 100644 --- a/main.tf +++ b/main.tf @@ -59,11 +59,10 @@ resource "google_compute_subnetwork" "subnetwork" { } data "google_compute_subnetwork" "created_subnets" { - count = length(var.subnets) - name = element(google_compute_subnetwork.subnetwork.*.name, count.index) - region = element(google_compute_subnetwork.subnetwork.*.region, count.index) - project = var.project_id - depends_on = [google_compute_subnetwork.subnetwork] + count = length(var.subnets) + name = element(google_compute_subnetwork.subnetwork.*.name, count.index) + region = element(google_compute_subnetwork.subnetwork.*.region, count.index) + project = var.project_id } /******************************************