From 321ea98fd476947cfab7b39d7db05b128487617c Mon Sep 17 00:00:00 2001 From: Bradley Lunsford Date: Mon, 29 Jul 2024 09:30:13 -0700 Subject: [PATCH] adding project and venue scoping to location (per shared services proxy requirements) --- .../modules/terraform-unity-sps-airflow/main.tf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/terraform-unity/modules/terraform-unity-sps-airflow/main.tf b/terraform-unity/modules/terraform-unity-sps-airflow/main.tf index 9061730..41aa819 100644 --- a/terraform-unity/modules/terraform-unity-sps-airflow/main.tf +++ b/terraform-unity/modules/terraform-unity-sps-airflow/main.tf @@ -856,15 +856,15 @@ resource "aws_ssm_parameter" "unity_proxy_airflow_ui" { type = "String" value = <<-EOT - + ProxyPassReverse "/" - + ProxyPassMatch "http://${data.kubernetes_ingress_v1.airflow_ingress.status[0].load_balancer[0].ingress[0].hostname}:5000/$1" ProxyPreserveHost On FallbackResource /management/index.html AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html - Substitute "s|\"/([^\"]*)|\"/sps/$1|q" + Substitute "s|\"/([^\"]*)|\"/${var.project}/${var.venue}/sps/$1|q" EOT @@ -881,15 +881,15 @@ resource "aws_ssm_parameter" "unity_proxy_ogc_api" { type = "String" value = <<-EOT - + ProxyPassReverse "/" - + ProxyPassMatch "http://${data.kubernetes_ingress_v1.ogc_processes_api_ingress.status[0].load_balancer[0].ingress[0].hostname}:5001/$1" ProxyPreserveHost On FallbackResource /management/index.html AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html - Substitute "s|\"/([^\"]*)|\"/sps-ogc/$1|q" + Substitute "s|\"/([^\"]*)|\"/${var.project}/${var.venue}/sps-ogc/$1|q" EOT