Skip to content

Commit f70e583

Browse files
authored
Revert "Add depends_on to created_subnets data fetch"
1 parent 66ceb0a commit f70e583

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

main.tf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ resource "google_compute_subnetwork" "subnetwork" {
5959
}
6060

6161
data "google_compute_subnetwork" "created_subnets" {
62-
count = length(var.subnets)
63-
name = element(google_compute_subnetwork.subnetwork.*.name, count.index)
64-
region = element(google_compute_subnetwork.subnetwork.*.region, count.index)
65-
project = var.project_id
66-
depends_on = [google_compute_subnetwork.subnetwork]
62+
count = length(var.subnets)
63+
name = element(google_compute_subnetwork.subnetwork.*.name, count.index)
64+
region = element(google_compute_subnetwork.subnetwork.*.region, count.index)
65+
project = var.project_id
6766
}
6867

6968
/******************************************

0 commit comments

Comments
 (0)