Skip to content

Commit 31813c5

Browse files
committed
changing some ssm params,
maybe there's a auth issue
1 parent 4b6ca22 commit 31813c5

File tree

2 files changed

+6
-6
lines changed
  • terraform-unity/modules
    • terraform-unity-sps-airflow
    • terraform-unity-sps-ogc-processes-api

2 files changed

+6
-6
lines changed

terraform-unity/modules/terraform-unity-sps-airflow/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ resource "aws_api_gateway_method_response" "response_200" {
616616
resource "aws_api_gateway_deployment" "airflow-api-gateway-deployment" {
617617
rest_api_id = data.aws_api_gateway_rest_api.rest_api.id
618618
stage_name = var.rest_api_stage
619-
depends_on = [aws_api_gateway_integration.rest_api_integration_for_airflow_api]
619+
depends_on = [aws_api_gateway_integration.rest_api_integration_for_airflow_api, aws_api_gateway_method_response.response_200]
620620
}
621621

622622
resource "aws_ssm_parameter" "airflow_ui_url" {
@@ -656,7 +656,7 @@ resource "aws_ssm_parameter" "airflow_api_url" {
656656
name = format("/%s", join("/", compact(["", var.project, var.venue, var.service_area, "processing", "airflow", "api_url"])))
657657
description = "The URL of the Airflow REST API."
658658
type = "String"
659-
value = "https://www.${data.aws_ssm_parameter.shared_services_domain.value}:4443/${var.project}/${var.venue}/sps/api/v1"
659+
value = "https://${aws_api_gateway_deployment.airflow-api-gateway-deployment.invoke_url}/sps/api/v1"
660660
tags = merge(local.common_tags, {
661661
Name = format(local.resource_name_prefix, "endpoints-airflow_api")
662662
Component = "SSM"
@@ -671,8 +671,8 @@ resource "aws_ssm_parameter" "airflow_api_health_check_endpoint" {
671671
type = "String"
672672
value = jsonencode({
673673
"componentName" : "Airflow API"
674-
"healthCheckUrl" : "https://www.${data.aws_ssm_parameter.shared_services_domain.value}:4443/${var.project}/${var.venue}/sps/api/v1/health"
675-
"landingPageUrl" : "https://www.${data.aws_ssm_parameter.shared_services_domain.value}:4443/${var.project}/${var.venue}/sps/api/v1"
674+
"healthCheckUrl" : "https://${aws_api_gateway_deployment.airflow-api-gateway-deployment.invoke_url}/sps/api/v1/health"
675+
"landingPageUrl" : "https://${aws_api_gateway_deployment.airflow-api-gateway-deployment.invoke_url}/sps/api/v1"
676676
})
677677
tags = merge(local.common_tags, {
678678
Name = format(local.resource_name_prefix, "health-check-endpoints-airflow_api")

terraform-unity/modules/terraform-unity-sps-ogc-processes-api/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ resource "aws_api_gateway_method_response" "response_200" {
390390
resource "aws_api_gateway_deployment" "ogc-api-gateway-deployment" {
391391
rest_api_id = data.aws_api_gateway_rest_api.rest_api.id
392392
stage_name = var.rest_api_stage
393-
depends_on = [aws_api_gateway_integration.rest_api_integration_for_ogc_api]
393+
depends_on = [aws_api_gateway_integration.rest_api_integration_for_ogc_api, aws_api_gateway_method_response.response_200]
394394
}
395395

396396
resource "aws_ssm_parameter" "ogc_processes_ui_url" {
@@ -410,7 +410,7 @@ resource "aws_ssm_parameter" "ogc_processes_api_url" {
410410
name = format("/%s", join("/", compact(["", var.project, var.venue, var.service_area, "processing", "ogc_processes", "api_url"])))
411411
description = "The URL of the OGC Processes REST API."
412412
type = "String"
413-
value = "https://www.${data.aws_ssm_parameter.shared_services_domain.value}:4443/${var.project}/${var.venue}/ogc/"
413+
value = "https://${aws_api_gateway_deployment.ogc-api-gateway-deployment.invoke_url}/ogc/api/"
414414
tags = merge(local.common_tags, {
415415
Name = format(local.resource_name_prefix, "endpoints-ogc_processes_api")
416416
Component = "SSM"

0 commit comments

Comments
 (0)