[Fix] Add explicit dependency between CR peers and NCC RA spoke creation (#1630)

This commit is contained in:
Luca Prete 2023-08-28 15:50:46 +02:00 committed by GitHub
parent 4c64c15871
commit ce96ac31e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -107,6 +107,10 @@ resource "google_compute_router_peer" "peer_0" {
peer_asn = var.router_config.peer_asn
peer_ip_address = each.value.ip
router_appliance_instance = each.value.vm
depends_on = [
google_network_connectivity_spoke.spoke-ra
]
}
resource "google_compute_router_peer" "peer_1" {
@ -122,4 +126,8 @@ resource "google_compute_router_peer" "peer_1" {
peer_asn = var.router_config.peer_asn
peer_ip_address = each.value.ip
router_appliance_instance = each.value.vm
depends_on = [
google_network_connectivity_spoke.spoke-ra
]
}