From 0cf6f1d3eb0573625deabafc5b48318464245c30 Mon Sep 17 00:00:00 2001 From: Miren Esnaola Date: Wed, 22 Jun 2022 10:09:44 +0200 Subject: [PATCH] Modified reserved IP address outputs --- modules/net-glb/README.md | 5 +++-- modules/net-glb/outputs.tf | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/net-glb/README.md b/modules/net-glb/README.md index a947c66653..79f7538f02 100644 --- a/modules/net-glb/README.md +++ b/modules/net-glb/README.md @@ -531,11 +531,12 @@ Target proxies leverage [url-maps](url-map.tf): set of L7 rules, which create a | name | description | sensitive | |---|---|:---:| | [backend_services](outputs.tf#L22) | Backend service resources. | | -| [global_forwarding_rule](outputs.tf#L57) | The global forwarding rule. | | +| [global_forwarding_rule](outputs.tf#L62) | The global forwarding rule. | | | [health_checks](outputs.tf#L17) | Health-check resources. | | | [ip_address](outputs.tf#L44) | The reserved global IP address. | | +| [ip_address_self_link](outputs.tf#L49) | The URI of the reserved global IP address. | | | [ssl_certificates](outputs.tf#L35) | The SSL certificate. | | -| [target_proxy](outputs.tf#L49) | The target proxy. | | +| [target_proxy](outputs.tf#L54) | The target proxy. | | | [url_map](outputs.tf#L30) | The url-map. | | diff --git a/modules/net-glb/outputs.tf b/modules/net-glb/outputs.tf index e328d016f7..490378f21b 100644 --- a/modules/net-glb/outputs.tf +++ b/modules/net-glb/outputs.tf @@ -43,6 +43,11 @@ output "ssl_certificates" { output "ip_address" { description = "The reserved global IP address." + value = try(google_compute_global_address.static_ip[0].address, null) +} + +output "ip_address_self_link" { + description = "The URI of the reserved global IP address." value = google_compute_global_forwarding_rule.forwarding_rule.ip_address }