From 91ea10e10f5dcd457d94a0434c75ae5c2bf263d2 Mon Sep 17 00:00:00 2001 From: mariammartins Date: Tue, 1 Oct 2024 16:35:37 -0300 Subject: [PATCH] remove depends_on --- 0-bootstrap/cb.tf | 2 +- 0-bootstrap/modules/cb-private-pool/network.tf | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/0-bootstrap/cb.tf b/0-bootstrap/cb.tf index a0a63ffc3..19c6e3f34 100644 --- a/0-bootstrap/cb.tf +++ b/0-bootstrap/cb.tf @@ -131,7 +131,7 @@ module "tf_source" { } # Remove after github.com/terraform-google-modules/terraform-google-bootstrap/issues/160 - depends_on = [time_sleep.wait_organization_policies] + depends_on = [module.seed_bootstrap, time_sleep.wait_organization_policies] } module "tf_private_pool" { diff --git a/0-bootstrap/modules/cb-private-pool/network.tf b/0-bootstrap/modules/cb-private-pool/network.tf index 82e120b5f..308f56a9f 100644 --- a/0-bootstrap/modules/cb-private-pool/network.tf +++ b/0-bootstrap/modules/cb-private-pool/network.tf @@ -77,13 +77,6 @@ resource "google_service_networking_connection" "worker_pool_conn" { reserved_peering_ranges = [google_compute_global_address.worker_pool_range[0].name] } -resource "time_sleep" "wait_worker_pool_conn" { - create_duration = "30s" - depends_on = [ - google_service_networking_connection.worker_pool_conn - ] -} - resource "google_compute_network_peering_routes_config" "peering_routes" { count = var.private_worker_pool.enable_network_peering ? 1 : 0 @@ -93,8 +86,6 @@ resource "google_compute_network_peering_routes_config" "peering_routes" { import_custom_routes = true export_custom_routes = true - - depends_on = [time_sleep.wait_worker_pool_conn] } module "firewall_rules" {