We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e04cf2 + f933614 commit bc07616Copy full SHA for bc07616
main.tf
@@ -52,10 +52,11 @@ resource "google_compute_subnetwork" "subnetwork" {
52
}
53
54
data "google_compute_subnetwork" "created_subnets" {
55
- count = length(var.subnets)
56
- name = element(google_compute_subnetwork.subnetwork.*.name, count.index)
57
- region = element(google_compute_subnetwork.subnetwork.*.region, count.index)
58
- project = var.project_id
+ 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
59
+ depends_on = [google_compute_subnetwork.subnetwork]
60
61
62
/******************************************
0 commit comments