From 6fc3941251a4d289c39efbcd354d71b80655837a Mon Sep 17 00:00:00 2001 From: g-otn <44736064+g-otn@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:29:13 -0300 Subject: [PATCH] fix: ignore slash in root context-path url --- lb.tf | 2 +- lb_listener_rules.tf | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lb.tf b/lb.tf index 045145f..4105f4a 100644 --- a/lb.tf +++ b/lb.tf @@ -24,7 +24,7 @@ resource "aws_lb_listener" "main" { fixed_response { content_type = "text/plain" status_code = "418" - message_body = "SOAT Tech Challenge - ALB Invalid destination" + message_body = "418 ALB Invalid destination - SOAT Tech Challenge" } } diff --git a/lb_listener_rules.tf b/lb_listener_rules.tf index bd6a20d..5211a3e 100644 --- a/lb_listener_rules.tf +++ b/lb_listener_rules.tf @@ -9,7 +9,7 @@ resource "aws_lb_listener_rule" "identification_svc_rule" { condition { path_pattern { - values = ["/identification/*"] + values = ["/identification*"] } } @@ -29,7 +29,7 @@ resource "aws_lb_listener_rule" "order_svc_rule" { condition { path_pattern { - values = ["/order/*"] + values = ["/order*"] } } @@ -49,7 +49,7 @@ resource "aws_lb_listener_rule" "payment_svc_rule" { condition { path_pattern { - values = ["/payment/*"] + values = ["/payment*"] } } @@ -69,7 +69,7 @@ resource "aws_lb_listener_rule" "production_svc_rule" { condition { path_pattern { - values = ["/production/*"] + values = ["/production*"] } }