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

Add backend service names to outputs for net-glb and net-ilb-l7 #1258

Merged
merged 3 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 5 additions & 4 deletions modules/net-glb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -815,9 +815,10 @@ module "glb-0" {
|---|---|:---:|
| [address](outputs.tf#L17) | Forwarding rule address. | |
| [backend_service_ids](outputs.tf#L22) | Backend service resources. | |
| [forwarding_rule](outputs.tf#L29) | Forwarding rule resource. | |
| [group_ids](outputs.tf#L34) | Autogenerated instance group ids. | |
| [health_check_ids](outputs.tf#L41) | Autogenerated health check ids. | |
| [neg_ids](outputs.tf#L48) | Autogenerated network endpoint group ids. | |
| [backend_service_names](outputs.tf#L29) | Backend service resource names. | |
| [forwarding_rule](outputs.tf#L36) | Forwarding rule resource. | |
| [group_ids](outputs.tf#L41) | Autogenerated instance group ids. | |
| [health_check_ids](outputs.tf#L48) | Autogenerated health check ids. | |
| [neg_ids](outputs.tf#L55) | Autogenerated network endpoint group ids. | |

<!-- END TFDOC -->
7 changes: 7 additions & 0 deletions modules/net-glb/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ output "backend_service_ids" {
}
}

output "backend_service_names" {
description = "Backend service resource names."
value = {
for k, v in google_compute_backend_service.default : k => v.name
}
}

output "forwarding_rule" {
description = "Forwarding rule resource."
value = google_compute_global_forwarding_rule.default
Expand Down
9 changes: 5 additions & 4 deletions modules/net-ilb-l7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,10 @@ module "ilb-l7" {
|---|---|:---:|
| [address](outputs.tf#L17) | Forwarding rule address. | |
| [backend_service_ids](outputs.tf#L22) | Backend service resources. | |
| [forwarding_rule](outputs.tf#L29) | Forwarding rule resource. | |
| [group_ids](outputs.tf#L34) | Autogenerated instance group ids. | |
| [health_check_ids](outputs.tf#L41) | Autogenerated health check ids. | |
| [neg_ids](outputs.tf#L48) | Autogenerated network endpoint group ids. | |
| [backend_service_names](outputs.tf#L29) | Backend service resource names. | |
| [forwarding_rule](outputs.tf#L36) | Forwarding rule resource. | |
| [group_ids](outputs.tf#L41) | Autogenerated instance group ids. | |
| [health_check_ids](outputs.tf#L48) | Autogenerated health check ids. | |
| [neg_ids](outputs.tf#L55) | Autogenerated network endpoint group ids. | |

<!-- END TFDOC -->
7 changes: 7 additions & 0 deletions modules/net-ilb-l7/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ output "backend_service_ids" {
}
}

output "backend_service_names" {
description = "Backend service resource names."
value = {
for k, v in google_compute_region_backend_service.default : k => v.name
}
}

output "forwarding_rule" {
description = "Forwarding rule resource."
value = google_compute_forwarding_rule.default
Expand Down