Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified reserved IP address outputs in net-glb module #695

Merged
merged 3 commits into from
Jul 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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