Output all neg ids in app lbs (#1879)

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
Julio Castillo
2023-11-23 08:41:31 +01:00
committed by GitHub
parent 642f65b841
commit 7baa1f98d4
4 changed files with 48 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/**
* Copyright 2022 Google LLC
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,6 +38,13 @@ output "forwarding_rule" {
value = google_compute_global_forwarding_rule.default
}
output "global_neg_ids" {
description = "Autogenerated global network endpoint group ids."
value = {
for k, v in google_compute_global_network_endpoint_group.default : k => v.id
}
}
output "group_ids" {
description = "Autogenerated instance group ids."
value = {
@@ -63,3 +70,17 @@ output "neg_ids" {
for k, v in google_compute_network_endpoint_group.default : k => v.id
}
}
output "psc_neg_ids" {
description = "Autogenerated PSC network endpoint group ids."
value = {
for k, v in google_compute_region_network_endpoint_group.psc : k => v.id
}
}
output "serverless_neg_ids" {
description = "Autogenerated serverless network endpoint group ids."
value = {
for k, v in google_compute_region_network_endpoint_group.serverless : k => v.id
}
}