Skip to content

Commit 6d76587

Browse files
authored
Upgrade to node v24 (#437)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated Node.js runtime from version 22.x to 24.x across Lambda functions and build environments. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent eb8fce5 commit 6d76587

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ build: src/
3232
make build_swagger
3333
cp -r src/api/resources/ dist/api/resources
3434
rm -rf dist/lambda/sqs
35-
docker run --rm -v "$(shell pwd)/dist/lambda":/var/task public.ecr.aws/sam/build-nodejs22.x:latest \
35+
docker run --rm -v "$(shell pwd)/dist/lambda":/var/task public.ecr.aws/sam/build-nodejs24.x:latest \
3636
sh -c "npm i -g yarn && $(yarn_env) yarn $(yarn_install_params) && \
3737
rm -rf node_modules/aws-crt/dist/bin/{darwin*,linux-x64*,linux-arm64-musl} && \
3838
rm -rf node_modules/argon2/prebuilds/{darwin*,freebsd*,linux-arm,linux-x64*,win32-x64*} && \
3939
rm -rf node_modules/argon2/prebuilds/linux-arm64/argon2.armv8.musl.node"
4040

41-
docker run --rm -v "$(shell pwd)/dist/sqsConsumer":/var/task public.ecr.aws/sam/build-nodejs22.x:latest \
41+
docker run --rm -v "$(shell pwd)/dist/sqsConsumer":/var/task public.ecr.aws/sam/build-nodejs24.x:latest \
4242
sh -c "npm i -g yarn && $(yarn_env) yarn $(yarn_install_params) && \
4343
rm -rf node_modules/aws-crt/dist/bin/{darwin*,linux-x64*,linux-arm64-musl} && \
4444
rm -rf node_modules/argon2/prebuilds/{darwin*,freebsd*,linux-arm,linux-x64*,win32-x64*} && \

terraform/modules/archival/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ resource "aws_lambda_function" "api_lambda" {
305305
role = aws_iam_role.archive_role.arn
306306
architectures = ["arm64"]
307307
handler = "dynamoStream.handler"
308-
runtime = "nodejs22.x"
308+
runtime = "nodejs24.x"
309309
filename = data.archive_file.api_lambda_code.output_path
310310
timeout = 90
311311
memory_size = 512

terraform/modules/lambdas/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ resource "aws_lambda_function" "api_lambda" {
351351
role = aws_iam_role.api_role.arn
352352
architectures = ["arm64"]
353353
handler = "lambda.handler"
354-
runtime = "nodejs22.x"
354+
runtime = "nodejs24.x"
355355
filename = data.archive_file.api_lambda_code.output_path
356356
timeout = 15
357357
memory_size = 2048
@@ -380,7 +380,7 @@ resource "aws_lambda_function" "sqs_lambda" {
380380
role = aws_iam_role.sqs_consumer_role.arn
381381
architectures = ["arm64"]
382382
handler = "index.handler"
383-
runtime = "nodejs22.x"
383+
runtime = "nodejs24.x"
384384
filename = data.archive_file.sqs_lambda_code.output_path
385385
timeout = 300
386386
memory_size = 2048
@@ -411,7 +411,7 @@ resource "aws_lambda_function" "hicpu_lambda" {
411411
role = aws_iam_role.api_role.arn
412412
architectures = ["arm64"]
413413
handler = "lambda.handler"
414-
runtime = "nodejs22.x"
414+
runtime = "nodejs24.x"
415415
filename = data.archive_file.api_lambda_code.output_path
416416
timeout = 15
417417
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" {
510510
function_name = "${var.ProjectId}-linkry-edge"
511511
role = aws_iam_role.linkry_lambda_edge_role[0].arn
512512
handler = "index.handler"
513-
runtime = "nodejs22.x"
513+
runtime = "nodejs24.x"
514514
publish = true
515515
timeout = 5
516516
memory_size = 128

0 commit comments

Comments
 (0)