Skip to content

Commit

Permalink
NCC: Spoke creation in spoke project, remove artificial dependency (#582
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gleichda authored Nov 14, 2024
1 parent 27b8053 commit d017e2f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions modules/network-connectivity-center/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" {
Expand All @@ -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
]
}

0 comments on commit d017e2f

Please sign in to comment.