Skip to content

Commit 46d6be7

Browse files
committed
seeing some odd az issues
1 parent 3356789 commit 46d6be7

File tree

2 files changed

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

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ resource "aws_api_gateway_integration" "rest_api_integration_for_airflow_api" {
586586
resource_id = aws_api_gateway_resource.rest_api_resource_airflow_proxy_path.id
587587
http_method = aws_api_gateway_method.rest_api_method_for_airflow_proxy_method.http_method
588588
type = "HTTP_PROXY"
589-
uri = format("%s://%s:%s", "http", data.kubernetes_service.airflow_ingress_internal.status[0].load_balancer[0].ingress[0].hostname, "5001/sps/api/{proxy}")
589+
uri = format("%s://%s:%s%s", "http", data.kubernetes_service.airflow_ingress_internal.status[0].load_balancer[0].ingress[0].hostname, local.load_balancer_port, "/sps/api/{proxy}")
590590
integration_http_method = "ANY"
591591
passthrough_behavior = "WHEN_NO_TEMPLATES"
592592
content_handling = "CONVERT_TO_TEXT"

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
@@ -309,7 +309,7 @@ resource "kubernetes_service" "ogc_processes_api_ingress_internal" {
309309
"service.beta.kubernetes.io/aws-load-balancer-scheme" = "internal"
310310
"service.beta.kubernetes.io/aws-load-balancer-type" = "external"
311311
"service.beta.kubernetes.io/aws-load-balancer-nlb-target-type" = "ip"
312-
"service.beta.kubernetes.io/aws-load-balancer-subnets" = jsondecode(data.aws_ssm_parameter.subnet_ids.value)["private"][0]
312+
"service.beta.kubernetes.io/aws-load-balancer-subnets" = jsondecode(data.aws_ssm_parameter.subnet_ids.value)["private"][1]
313313
"service.beta.kubernetes.io/aws-load-balancer-healthcheck-path" = "/health"
314314
"service.beta.kubernetes.io/aws-load-balancer-attributes" = "load_balancing.cross_zone.enabled=true"
315315
}
@@ -360,7 +360,7 @@ resource "aws_api_gateway_integration" "rest_api_integration_for_ogc_api" {
360360
resource_id = aws_api_gateway_resource.rest_api_resource_ogc_proxy_path.id
361361
http_method = aws_api_gateway_method.rest_api_method_for_ogc_proxy_method.http_method
362362
type = "HTTP_PROXY"
363-
uri = format("%s://%s:%s", "http", data.kubernetes_service.ogc_processes_api_ingress_internal.status[0].load_balancer[0].ingress[0].hostname, "5001/ogc/{proxy}")
363+
uri = format("%s://%s:%s%s", "http", data.kubernetes_service.ogc_processes_api_ingress_internal.status[0].load_balancer[0].ingress[0].hostname, local.load_balancer_port, "/ogc/{proxy}")
364364
integration_http_method = "ANY"
365365
passthrough_behavior = "WHEN_NO_TEMPLATES"
366366
content_handling = "CONVERT_TO_TEXT"

0 commit comments

Comments
 (0)