From 5113da11158f8ee6dde999fd70590a74093ed070 Mon Sep 17 00:00:00 2001 From: James Hochadel Date: Mon, 21 Oct 2024 16:29:57 -0400 Subject: [PATCH] Fix terraform trying to register the CSB before it's ready ...by adding health checks, which it will wait on. --- terraform/modules/csb/main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terraform/modules/csb/main.tf b/terraform/modules/csb/main.tf index 3b4dfb42..20b3d0d6 100644 --- a/terraform/modules/csb/main.tf +++ b/terraform/modules/csb/main.tf @@ -58,6 +58,9 @@ resource "cloudfoundry_app" "csb" { routes { route = cloudfoundry_route.csb.id } + + health_check_type = "http" + health_check_http_endpoint = "/ready" } data "cloudfoundry_domain" "platform_components" {