Skip to content

fix: Replace health check SSM #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions tf-module/unity-cumulus/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,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 @@ -190,4 +195,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
Loading