Skip to content

Commit

Permalink
fix: update healthcheck as requested (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
wphyojpl authored Jul 23, 2024
1 parent f68b04b commit 82928f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 8 additions & 2 deletions tf-module/unity-cumulus/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,16 @@ resource "aws_ssm_parameter" "uds_api_1" {

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"
name = "${var.health_check_base_path}/${var.health_check_marketplace_item}/component/${var.health_check_component_name}"
type = "String"
tier = "Advanced"
value = "${var.uds_base_url}/${var.dapa_api_prefix}/collections"
value = jsonencode({
healthCheckUrl = "${var.uds_base_url}/${var.dapa_api_prefix}/collections",
landingPageUrl = "${var.unity_ui_base_url}/data/misc/stac_entry",
componentName = "Data Catalog",
})
tags = var.tags
overwrite = true
}

resource "aws_ssm_parameter" "marketplace_prefix" {
Expand All @@ -191,4 +196,5 @@ resource "aws_ssm_parameter" "marketplace_prefix" {
value = var.prefix
tier = "Advanced"
tags = var.tags
overwrite = true
}
7 changes: 6 additions & 1 deletion tf-module/unity-cumulus/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ variable "uds_base_url" {
type = string
}

variable "unity_ui_base_url" {
type = string
description = "Example: https://www.dev.mdps.mcp.nasa.gov:4443. Make sure it does NOT end with `/`"
}

variable "report_to_ems" {
type = string
default = "TRUE"
Expand Down Expand Up @@ -188,7 +193,7 @@ variable "is_deploying_healthcheck" {

variable "health_check_base_path" {
type = string
default = "/unity/healthCheck"
default = "/unity"
description = "base path for healthcheck which should start with, but not end with `/`"
}

Expand Down

0 comments on commit 82928f5

Please sign in to comment.