Skip to content

Commit

Permalink
Merge pull request #177 from unity-sds/127-health-check-endpoints
Browse files Browse the repository at this point in the history
127 health check endpoints
  • Loading branch information
LucaCinquini authored Jul 25, 2024
2 parents 73117e6 + 6b349f1 commit 7ef6ca6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions terraform-unity/modules/terraform-unity-sps-airflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,14 @@ No modules.
| [aws_sns_topic_subscription.s3_isl_event_subscription](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/sns_topic_subscription) | resource |
| [aws_sqs_queue.s3_isl_event_queue](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/sqs_queue) | resource |
| [aws_sqs_queue_policy.s3_isl_event_queue_policy](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/sqs_queue_policy) | resource |
| [aws_ssm_parameter.airflow_api_health_check_endpoint](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/ssm_parameter) | resource |
| [aws_ssm_parameter.airflow_api_url](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/ssm_parameter) | resource |
| [aws_ssm_parameter.airflow_dag_trigger_lambda_package](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/ssm_parameter) | resource |
| [aws_ssm_parameter.airflow_logs](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/ssm_parameter) | resource |
| [aws_ssm_parameter.airflow_ui_health_check_endpoint](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/ssm_parameter) | resource |
| [aws_ssm_parameter.airflow_ui_url](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/ssm_parameter) | resource |
| [aws_ssm_parameter.isl_bucket](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/ssm_parameter) | resource |
| [aws_ssm_parameter.ogc_processes_api_health_check_endpoint](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/ssm_parameter) | resource |
| [aws_ssm_parameter.ogc_processes_api_url](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/ssm_parameter) | resource |
| [aws_ssm_parameter.ogc_processes_ui_url](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/resources/ssm_parameter) | resource |
| [helm_release.airflow](https://registry.terraform.io/providers/hashicorp/helm/2.13.1/docs/resources/release) | resource |
Expand Down
15 changes: 12 additions & 3 deletions terraform-unity/modules/terraform-unity-sps-airflow/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ resource "aws_ssm_parameter" "airflow_ui_url" {
}

resource "aws_ssm_parameter" "airflow_ui_health_check_endpoint" {
name = format("/%s", join("/", compact(["", var.project, var.project, var.venue, "component", "airflow-ui"])))
name = format("/%s", join("/", compact(["", var.project, var.project, var.venue, "component", var.deployment_name, "airflow-ui"])))
description = "The URL of the Airflow UI."
type = "String"
value = jsonencode({
Expand All @@ -822,6 +822,9 @@ resource "aws_ssm_parameter" "airflow_ui_health_check_endpoint" {
Component = "SSM"
Stack = "SSM"
})
lifecycle {
ignore_changes = [value]
}
}

resource "aws_ssm_parameter" "airflow_api_url" {
Expand All @@ -837,7 +840,7 @@ resource "aws_ssm_parameter" "airflow_api_url" {
}

resource "aws_ssm_parameter" "airflow_api_health_check_endpoint" {
name = format("/%s", join("/", compact(["", var.project, var.project, var.venue, "component", "airflow-api"])))
name = format("/%s", join("/", compact(["", var.project, var.project, var.venue, "component", var.deployment_name, "airflow-api"])))
description = "The URL of the Airflow REST API."
type = "String"
value = jsonencode({
Expand All @@ -850,6 +853,9 @@ resource "aws_ssm_parameter" "airflow_api_health_check_endpoint" {
Component = "SSM"
Stack = "SSM"
})
lifecycle {
ignore_changes = [value]
}
}

resource "aws_ssm_parameter" "airflow_logs" {
Expand Down Expand Up @@ -889,7 +895,7 @@ resource "aws_ssm_parameter" "ogc_processes_api_url" {
}

resource "aws_ssm_parameter" "ogc_processes_api_health_check_endpoint" {
name = format("/%s", join("/", compact(["", var.project, var.project, var.venue, "component", "ogc-api"])))
name = format("/%s", join("/", compact(["", var.project, var.project, var.venue, "component", var.deployment_name, "ogc-api"])))
description = "The URL of the OGC Processes REST API."
type = "String"
value = jsonencode({
Expand All @@ -902,6 +908,9 @@ resource "aws_ssm_parameter" "ogc_processes_api_health_check_endpoint" {
Component = "SSM"
Stack = "SSM"
})
lifecycle {
ignore_changes = [value]
}
}

resource "kubernetes_manifest" "karpenter_node_class" {
Expand Down

0 comments on commit 7ef6ca6

Please sign in to comment.