Ensure all modules have an id output (#1410)

* net-vpc

* a-d

* complete modules

* fix error
This commit is contained in:
Ludovico Magnocavallo
2023-06-02 16:07:22 +02:00
committed by GitHub
parent f069562998
commit 884cb8b4bf
91 changed files with 365 additions and 192 deletions

View File

@@ -444,5 +444,6 @@ module "nginx-mig" {
| [autoscaler](outputs.tf#L17) | Auto-created autoscaler resource. | |
| [group_manager](outputs.tf#L26) | Instance group resource. | |
| [health_check](outputs.tf#L35) | Auto-created health-check resource. | |
| [id](outputs.tf#L44) | Fully qualified group manager id. | |
<!-- END TFDOC -->

View File

@@ -40,3 +40,12 @@ output "health_check" {
: google_compute_health_check.default.0
)
}
output "id" {
description = "Fully qualified group manager id."
value = try(
google_compute_instance_group_manager.default.0.id,
google_compute_region_instance_group_manager.default.0.id,
null
)
}