Skip to content

Commit

Permalink
Merge pull request #695 from apichick/net_glb_ip_address
Browse files Browse the repository at this point in the history
Modified reserved IP address outputs
  • Loading branch information
apichick authored Jul 1, 2022
2 parents 6db8a28 + ecee298 commit 9336ac6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/net-glb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |

<!-- END TFDOC -->
5 changes: 5 additions & 0 deletions modules/net-glb/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9336ac6

Please sign in to comment.