Skip to content

Commit ad47f69

Browse files
committed
add worker_pool_conn depends_on and remove module seed_boostratp depends_on
1 parent b8885e0 commit ad47f69

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

0-bootstrap/cb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ module "tf_source" {
131131
}
132132

133133
# Remove after github.com/terraform-google-modules/terraform-google-bootstrap/issues/160
134-
depends_on = [module.seed_bootstrap, time_sleep.wait_organization_policies]
134+
depends_on = [time_sleep.wait_organization_policies]
135135
}
136136

137137
module "tf_private_pool" {

0-bootstrap/modules/cb-private-pool/network.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ resource "google_service_networking_connection" "worker_pool_conn" {
7777
reserved_peering_ranges = [google_compute_global_address.worker_pool_range[0].name]
7878
}
7979

80+
resource "time_sleep" "wait_worker_pool_conn" {
81+
create_duration = "30s"
82+
depends_on = [
83+
google_service_networking_connection.worker_pool_conn
84+
]
85+
}
86+
8087
resource "google_compute_network_peering_routes_config" "peering_routes" {
8188
count = var.private_worker_pool.enable_network_peering ? 1 : 0
8289

@@ -87,7 +94,7 @@ resource "google_compute_network_peering_routes_config" "peering_routes" {
8794
import_custom_routes = true
8895
export_custom_routes = true
8996

90-
depends_on = [google_service_networking_connection.worker_pool_conn]
97+
depends_on = [time_sleep.wait_worker_pool_conn]
9198
}
9299

93100
module "firewall_rules" {

0 commit comments

Comments
 (0)