Ensure all modules have an id output (#1410)

* net-vpc

* a-d

* complete modules

* fix error
This commit is contained in:
Ludovico Magnocavallo
2023-06-02 16:07:22 +02:00
committed by GitHub
parent f069562998
commit 884cb8b4bf
91 changed files with 365 additions and 192 deletions

View File

@@ -122,12 +122,11 @@ module "vpngw-a" {
|---|---|:---:|
| [bgp_peers](outputs.tf#L18) | BGP peer resources. | |
| [external_gateway](outputs.tf#L25) | External VPN gateway resource. | |
| [gateway_id](outputs.tf#L30) | VPN gateway ID. | |
| [gateway_self_link](outputs.tf#L35) | VPN gateway self_link. | |
| [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. | |
| [tunnels](outputs.tf#L60) | VPN tunnel resources. | |
| [id](outputs.tf#L30) | Fully qualified VPN gateway id. | |
| [random_secret](outputs.tf#L35) | Generated secret. | |
| [router](outputs.tf#L40) | Router resource (only if auto-created). | |
| [router_name](outputs.tf#L45) | Router name. | |
| [self_link](outputs.tf#L50) | HA VPN gateway self link. | |
| [tunnels](outputs.tf#L55) | VPN tunnel resources. | |
<!-- END TFDOC -->

View File

@@ -27,16 +27,11 @@ output "external_gateway" {
value = local.peer_gateway
}
output "gateway_id" {
description = "VPN gateway ID."
output "id" {
description = "Fully qualified VPN gateway id."
value = google_compute_ha_vpn_gateway.default.id
}
output "gateway_self_link" {
description = "VPN gateway self_link."
value = google_compute_ha_vpn_gateway.default.self_link
}
output "random_secret" {
description = "Generated secret."
value = local.secret