diff --git a/modules/net-vpn-ha/README.md b/modules/net-vpn-ha/README.md index 8bbac84d5d..d6f5f221cb 100644 --- a/modules/net-vpn-ha/README.md +++ b/modules/net-vpn-ha/README.md @@ -147,13 +147,14 @@ module "vpn_ha" { | [bgp_peers](outputs.tf#L18) | BGP peer resources. | | | [external_gateway](outputs.tf#L25) | External VPN gateway resource. | | | [gateway](outputs.tf#L30) | VPN gateway resource (only if auto-created). | | -| [name](outputs.tf#L35) | VPN gateway name (only if auto-created). . | | -| [random_secret](outputs.tf#L40) | Generated secret. | | -| [router](outputs.tf#L45) | Router resource (only if auto-created). | | -| [router_name](outputs.tf#L50) | Router name. | | -| [self_link](outputs.tf#L55) | HA VPN gateway self link. | | -| [tunnel_names](outputs.tf#L60) | VPN tunnel names. | | -| [tunnel_self_links](outputs.tf#L68) | VPN tunnel self links. | | -| [tunnels](outputs.tf#L76) | VPN tunnel resources. | | +| [id](outputs.tf#L35) | Static gateway id. | | +| [name](outputs.tf#L42) | VPN gateway name (only if auto-created). . | | +| [random_secret](outputs.tf#L47) | Generated secret. | | +| [router](outputs.tf#L52) | Router resource (only if auto-created). | | +| [router_name](outputs.tf#L57) | Router name. | | +| [self_link](outputs.tf#L62) | HA VPN gateway self link. | | +| [tunnel_names](outputs.tf#L67) | VPN tunnel names. | | +| [tunnel_self_links](outputs.tf#L75) | VPN tunnel self links. | | +| [tunnels](outputs.tf#L83) | VPN tunnel resources. | | diff --git a/modules/net-vpn-ha/outputs.tf b/modules/net-vpn-ha/outputs.tf index 98b8339499..5b4f56d8d8 100644 --- a/modules/net-vpn-ha/outputs.tf +++ b/modules/net-vpn-ha/outputs.tf @@ -32,6 +32,13 @@ output "gateway" { value = one(google_compute_ha_vpn_gateway.ha_gateway[*]) } +output "id" { + description = "Static gateway id." + value = ( + "projects/${var.project_id}/regions/${var.region}/vpnGateways/${var.name}" + ) +} + output "name" { description = "VPN gateway name (only if auto-created). ." value = one(google_compute_ha_vpn_gateway.ha_gateway[*].name)