From ffe6544b4f5fcb093e66fe8b71b2deafe74a99ce Mon Sep 17 00:00:00 2001 From: Dev Singh Date: Mon, 8 Dec 2025 21:49:21 -0600 Subject: [PATCH] Upgrade to node v24 --- Makefile | 4 ++-- terraform/modules/archival/main.tf | 2 +- terraform/modules/lambdas/main.tf | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index e968d9a2..9cb60c34 100644 --- a/Makefile +++ b/Makefile @@ -32,13 +32,13 @@ build: src/ make build_swagger cp -r src/api/resources/ dist/api/resources rm -rf dist/lambda/sqs - docker run --rm -v "$(shell pwd)/dist/lambda":/var/task public.ecr.aws/sam/build-nodejs22.x:latest \ + docker run --rm -v "$(shell pwd)/dist/lambda":/var/task public.ecr.aws/sam/build-nodejs24.x:latest \ sh -c "npm i -g yarn && $(yarn_env) yarn $(yarn_install_params) && \ rm -rf node_modules/aws-crt/dist/bin/{darwin*,linux-x64*,linux-arm64-musl} && \ rm -rf node_modules/argon2/prebuilds/{darwin*,freebsd*,linux-arm,linux-x64*,win32-x64*} && \ rm -rf node_modules/argon2/prebuilds/linux-arm64/argon2.armv8.musl.node" - docker run --rm -v "$(shell pwd)/dist/sqsConsumer":/var/task public.ecr.aws/sam/build-nodejs22.x:latest \ + docker run --rm -v "$(shell pwd)/dist/sqsConsumer":/var/task public.ecr.aws/sam/build-nodejs24.x:latest \ sh -c "npm i -g yarn && $(yarn_env) yarn $(yarn_install_params) && \ rm -rf node_modules/aws-crt/dist/bin/{darwin*,linux-x64*,linux-arm64-musl} && \ rm -rf node_modules/argon2/prebuilds/{darwin*,freebsd*,linux-arm,linux-x64*,win32-x64*} && \ diff --git a/terraform/modules/archival/main.tf b/terraform/modules/archival/main.tf index 8d19248c..e2d38bc1 100644 --- a/terraform/modules/archival/main.tf +++ b/terraform/modules/archival/main.tf @@ -305,7 +305,7 @@ resource "aws_lambda_function" "api_lambda" { role = aws_iam_role.archive_role.arn architectures = ["arm64"] handler = "dynamoStream.handler" - runtime = "nodejs22.x" + runtime = "nodejs24.x" filename = data.archive_file.api_lambda_code.output_path timeout = 90 memory_size = 512 diff --git a/terraform/modules/lambdas/main.tf b/terraform/modules/lambdas/main.tf index 52688128..d0169162 100644 --- a/terraform/modules/lambdas/main.tf +++ b/terraform/modules/lambdas/main.tf @@ -351,7 +351,7 @@ resource "aws_lambda_function" "api_lambda" { role = aws_iam_role.api_role.arn architectures = ["arm64"] handler = "lambda.handler" - runtime = "nodejs22.x" + runtime = "nodejs24.x" filename = data.archive_file.api_lambda_code.output_path timeout = 15 memory_size = 2048 @@ -380,7 +380,7 @@ resource "aws_lambda_function" "sqs_lambda" { role = aws_iam_role.sqs_consumer_role.arn architectures = ["arm64"] handler = "index.handler" - runtime = "nodejs22.x" + runtime = "nodejs24.x" filename = data.archive_file.sqs_lambda_code.output_path timeout = 300 memory_size = 2048 @@ -411,7 +411,7 @@ resource "aws_lambda_function" "hicpu_lambda" { role = aws_iam_role.api_role.arn architectures = ["arm64"] handler = "lambda.handler" - runtime = "nodejs22.x" + runtime = "nodejs24.x" filename = data.archive_file.api_lambda_code.output_path timeout = 15 memory_size = 4096 // This will get us 2 full CPU cores, which will speed up those cryptographic ops that require this server @@ -510,7 +510,7 @@ resource "aws_lambda_function" "linkry_edge" { function_name = "${var.ProjectId}-linkry-edge" role = aws_iam_role.linkry_lambda_edge_role[0].arn handler = "index.handler" - runtime = "nodejs22.x" + runtime = "nodejs24.x" publish = true timeout = 5 memory_size = 128