Skip to content

Commit

Permalink
UML-3249 Upgrade packages in Lambda function (#2503)
Browse files Browse the repository at this point in the history
* UML-3249 Upgrade packages in Lambda function

* Add is_active_region check
  • Loading branch information
Sam Ainsworth authored Jan 17, 2024
1 parent 97ac440 commit ad38668
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lambda-functions/upload-statistics/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion terraform/environment/region/actor_load_balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion terraform/environment/region/viewer_load_balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad38668

Please sign in to comment.