Revert locals

This commit is contained in:
Julio Castillo 2022-11-30 11:00:45 +01:00
parent b5593db8a2
commit 9aa1c49adf
1 changed files with 2 additions and 2 deletions

View File

@ -18,12 +18,12 @@
locals { locals {
router = ( router = (
var.router_config.create var.router_config.create
? google_compute_router.router[0].name ? try(google_compute_router.router[0].name, null)
: var.router_config.name : var.router_config.name
) )
vpn_gateway = ( vpn_gateway = (
var.vpn_gateway == null var.vpn_gateway == null
? google_compute_ha_vpn_gateway.ha_gateway[0].self_link ? try(google_compute_ha_vpn_gateway.ha_gateway[0].self_link, null)
: var.vpn_gateway : var.vpn_gateway
) )
secret = random_id.secret.b64_url secret = random_id.secret.b64_url