Do not set default ASN number (#1633)

This commit is contained in:
Luca Prete
2023-08-28 17:06:31 +02:00
committed by GitHub
parent 6459e7caa8
commit 9d0fd744a8
3 changed files with 8 additions and 6 deletions

View File

@@ -28,8 +28,12 @@ resource "google_compute_router" "router" {
project = var.project_id
region = var.region
network = var.router_network
bgp {
asn = var.router_asn
dynamic "bgp" {
for_each = var.router_asn == null ? [] : [1]
content {
asn = var.router_asn
}
}
}