Skip to content

Commit d017e2f

Browse files
authored
NCC: Spoke creation in spoke project, remove artificial dependency (#582)
1 parent 27b8053 commit d017e2f

File tree

1 file changed

+1
-11
lines changed
  • modules/network-connectivity-center

1 file changed

+1
-11
lines changed

modules/network-connectivity-center/main.tf

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ resource "google_network_connectivity_hub" "hub" {
4040

4141
resource "google_network_connectivity_spoke" "vpc_spoke" {
4242
for_each = var.vpc_spokes
43-
project = var.project_id
43+
project = split("/", each.value.uri)[1]
4444
name = each.key
4545
location = "global"
4646
description = each.value.description
@@ -78,11 +78,6 @@ resource "google_network_connectivity_spoke" "hybrid_spoke" {
7878
site_to_site_data_transfer = each.value.site_to_site_data_transfer
7979
}
8080
}
81-
82-
# TODO: gleichda remove once b/369823133 is fixed
83-
depends_on = [
84-
google_network_connectivity_spoke.vpc_spoke
85-
]
8681
}
8782

8883
resource "google_network_connectivity_spoke" "router_appliance_spoke" {
@@ -106,9 +101,4 @@ resource "google_network_connectivity_spoke" "router_appliance_spoke" {
106101
site_to_site_data_transfer = each.value.site_to_site_data_transfer
107102

108103
}
109-
110-
# TODO: gleichda remove once b/369823133 is fixed
111-
depends_on = [
112-
google_network_connectivity_spoke.hybrid_spoke
113-
]
114104
}

0 commit comments

Comments
 (0)