diff --git a/tf-module/unity-cumulus/main.tf b/tf-module/unity-cumulus/main.tf index b753b6ff..1f50b125 100644 --- a/tf-module/unity-cumulus/main.tf +++ b/tf-module/unity-cumulus/main.tf @@ -170,4 +170,12 @@ resource "aws_ssm_parameter" "uds_api_1" { name = "/unity/unity-ds/api-gateway/integrations/${var.prefix}-uds_api_1-function-name" type = "String" value = aws_lambda_function.uds_api_1.function_name +} + + + resource "aws_ssm_parameter" "health_check_value" { + count = var.is_deploying_healthcheck ? 1 : 0 + name = "${var.health_check_base_path}/${var.health_check_marketplace_item}/${var.health_check_component_name}/url" + type = "String" + value = "${var.uds_base_url}/${var.dapa_api_prefix}/collections" } \ No newline at end of file diff --git a/tf-module/unity-cumulus/variables.tf b/tf-module/unity-cumulus/variables.tf index 4c551400..cd1705ea 100644 --- a/tf-module/unity-cumulus/variables.tf +++ b/tf-module/unity-cumulus/variables.tf @@ -165,4 +165,29 @@ variable "cors_integration_response" { "method.response.header.Access-Control-Expose-Headers" = "'Access-Control-Allow-Methods,Access-Control-Expose-Headers,Access-Control-Max-Age'" "method.response.header.Access-Control-Max-Age" = "'300'" } +} + + +variable "health_check_marketplace_item" { + type = string + default = "shared-services" + description = "name of the portion of market place item as path of SSM token" +} + +variable "health_check_component_name" { + type = string + default = "data-catalog" + description = "name of the portion of market place item as path of SSM token" +} + +variable "is_deploying_healthcheck" { + type = bool + default = true + description = "flag to specify if deploying health check" +} + +variable "health_check_base_path" { + type = string + default = "/unity/healthCheck" + description = "base path for healthcheck which should start with, but not end with `/`" } \ No newline at end of file