diff --git a/lambda-functions/upload-statistics/Dockerfile b/lambda-functions/upload-statistics/Dockerfile index 075ad186a5..f67cebba56 100644 --- a/lambda-functions/upload-statistics/Dockerfile +++ b/lambda-functions/upload-statistics/Dockerfile @@ -3,7 +3,7 @@ ARG FUNCTION_DIR="/function" FROM python:3.11-slim -RUN apt -y update && apt -y install gcc python3-dev +RUN apt --assume-yes update && apt --assume-yes upgrade && apt --assume-yes install gcc python3-dev ARG FUNCTION_DIR diff --git a/terraform/environment/region/actor_load_balancer.tf b/terraform/environment/region/actor_load_balancer.tf index 2162892d32..aa7bc6ce76 100644 --- a/terraform/environment/region/actor_load_balancer.tf +++ b/terraform/environment/region/actor_load_balancer.tf @@ -111,7 +111,7 @@ resource "aws_lb_listener_rule" "redirect_use_root_to_gov" { # rewrite to live service url resource "aws_lb_listener_rule" "rewrite_use_to_live_service_url" { - count = local.route53_fqdns.public_facing_use != "" ? 1 : 0 + count = local.is_active_region ? 1 : 0 listener_arn = aws_lb_listener.actor_loadbalancer.arn priority = 2 diff --git a/terraform/environment/region/viewer_load_balancer.tf b/terraform/environment/region/viewer_load_balancer.tf index df477fbc23..feb69cbe23 100644 --- a/terraform/environment/region/viewer_load_balancer.tf +++ b/terraform/environment/region/viewer_load_balancer.tf @@ -108,7 +108,7 @@ resource "aws_lb_listener_rule" "redirect_view_root_to_gov" { # rewrite to live service url resource "aws_lb_listener_rule" "rewrite_view_to_live_service_url" { - count = local.route53_fqdns.public_facing_view != "" ? 1 : 0 + count = local.is_active_region ? 1 : 0 listener_arn = aws_lb_listener.viewer_loadbalancer.arn priority = 2