From d017e2f952b9bc501f59f19022e33ce3c05ad99f Mon Sep 17 00:00:00 2001 From: David Gleich Date: Thu, 14 Nov 2024 21:39:39 +0100 Subject: [PATCH] NCC: Spoke creation in spoke project, remove artificial dependency (#582) --- modules/network-connectivity-center/main.tf | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/modules/network-connectivity-center/main.tf b/modules/network-connectivity-center/main.tf index 7dc0a7bc..158fcdb9 100644 --- a/modules/network-connectivity-center/main.tf +++ b/modules/network-connectivity-center/main.tf @@ -40,7 +40,7 @@ resource "google_network_connectivity_hub" "hub" { resource "google_network_connectivity_spoke" "vpc_spoke" { for_each = var.vpc_spokes - project = var.project_id + project = split("/", each.value.uri)[1] name = each.key location = "global" description = each.value.description @@ -78,11 +78,6 @@ resource "google_network_connectivity_spoke" "hybrid_spoke" { site_to_site_data_transfer = each.value.site_to_site_data_transfer } } - - # TODO: gleichda remove once b/369823133 is fixed - depends_on = [ - google_network_connectivity_spoke.vpc_spoke - ] } resource "google_network_connectivity_spoke" "router_appliance_spoke" { @@ -106,9 +101,4 @@ resource "google_network_connectivity_spoke" "router_appliance_spoke" { site_to_site_data_transfer = each.value.site_to_site_data_transfer } - - # TODO: gleichda remove once b/369823133 is fixed - depends_on = [ - google_network_connectivity_spoke.hybrid_spoke - ] }