Fix health checks in net-ilb and compute-mig modules (#69)

* fix health checks in ilb module

* fix health check in compute-mig and add basic tests
This commit is contained in:
Ludovico Magnocavallo
2020-05-07 07:37:15 +02:00
committed by GitHub
parent a51c8be101
commit fa29a8e26f
9 changed files with 485 additions and 187 deletions

View File

@@ -34,7 +34,16 @@ output "group_manager" {
output "health_check" {
description = "Auto-created health-check resource."
value = var.health_check_config == null ? null : try(
google_compute_health_check.default.0, {}
value = (
var.health_check_config == null
? null
: try(
google_compute_health_check.http.0,
google_compute_health_check.https.0,
google_compute_health_check.tcp.0,
google_compute_health_check.ssl.0,
google_compute_health_check.http2.0,
{}
)
)
}