Skip to content

feat: add support for nodejs26.x runtime - #9420

Merged
vicheey merged 2 commits into
aws:developfrom
reedham-aws:nodejs26
Nov 13, 2026
Merged

vicheey merged 2 commits into
aws:developfrom
reedham-aws:nodejs26

Conversation

@reedham-aws

@reedham-aws reedham-aws commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Which issue(s) does this change fix?

Closes #8953

Why is this change necessary?

Lambda support for NodeJS 26.x is coming soon, and we'd like to support it in SAM CLI.

How does it address the issue?

Adds the runtime as an option in several places, including the sam init runtime list, build workflows, and overall runtime list.

What side effects does this change have?

No side effects, although the tests will fail until the lambda-builders update (aws/aws-lambda-builders#961) is released and then merged as a dependency update.

Mandatory Checklist

PRs will only be reviewed after checklist is complete

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@reedham-aws
reedham-aws requested a review from a team as a code owner November 10, 2026 22:32
@aws-sam-tooling-bot

aws-sam-tooling-bot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🧪 Hands-on test: No problems observed in 6 scenarios

Commit c0333bc · build LambdaToolingHandsOn-Docker:18c70213-0038-49b3-8e43-f7381b9e7f5d. The plan's scenarios ran on an isolated build host; a problem is reported only if it reproduced at least twice. Passing scenarios show only that these checks behaved as expected, not that the change is correct.

Scenarios

Scenario Planned check Result Runner's note
S1 Run the unit tests the PR touches, plus nearby suites that hard-code runtime lists (init, build, schema, architecture),… ✅ pass Head: touched suites (workflow_config, lambda_debug_settings, lambda_container, schema) 224 passed; nearby suites (commands/init, lib/utils, local/common, lib/build_module) 944 passed, 4 skipped. A -…
S2 Check that the committed schema/samcli.json matches the generator output for the PR's runtime list (init --runtime choi… ✅ pass python -m schema.make_schema exited 0; diff against committed schema/samcli.json was empty (diff_exit=0); nodejs26.x appears 9 times. Committed file restored afterwards; git status clean.
S3 Main path: sam build of nodejs26.x functions on x86_64 and arm64 without a container. Shows whether the pinned aws-lamb… ✅ pass Head: samdev build of nodejs26.x on x86_64 and arm64 (no container, host node v24.22.2) printed Build Succeeded, exit 0. FnX86 and FnArm each contain main.js, package.json and node_modules/minimal-re…
S4 sam init with --runtime nodejs26.x, non-interactive, for zip (hello-world template) and image (amazon/nodejs26.x-base) … ✅ pass Head zip: sam init --runtime nodejs26.x --app-template hello-world exit 0, template.yaml has Runtime: nodejs26.x. Head image: the plan's --app-template hello-world fails with "Can't find application …
S5 Check the debug settings sam local invoke -d would use for nodejs26.x: the entrypoint, the node26 NODE_PATH and AWS_EXE… ✅ pass Head: entrypoint ends with /var/lang/bin/node --no-lazy --expose-gc /var/runtime/index.mjs; env has NODE_PATH with /opt/nodejs/node26/node_modules, NODE_OPTIONS --inspect-brk=0.0.0.0:5858 --max-http-…
S6 sam local invoke of a nodejs26.x function in Docker. Checks the emulation image the runtime maps to and that the handle… ✅ pass Head: samdev local invoke Fn (nodejs26.x) exit 0. SAM pulled public.ecr.aws/lambda/nodejs:26-x86_64, built public.ecr.aws/lambda/nodejs:26-rapid-x86_64, and the handler returned "Hello World". Base: …
Runner's notes in full
  • S1: Head: touched suites (workflow_config, lambda_debug_settings, lambda_container, schema) 224 passed; nearby suites (commands/init, lib/utils, local/common, lib/build_module) 944 passed, 4 skipped. A -k filter confirmed the nodejs26.x cases ran and passed: test_must_work_for_nodejs_5_nodejs26_x and two lambda_container nodejs26_x debug tests. Setup note: with SAM_CLI_DEV=1 the console script is samdev, not sam, so samdev was used throughout. aws-lambda-builders 1.69.0 is installed and already lists nodejs26.x.
  • S3: Head: samdev build of nodejs26.x on x86_64 and arm64 (no container, host node v24.22.2) printed Build Succeeded, exit 0. FnX86 and FnArm each contain main.js, package.json and node_modules/minimal-request-promise; built template keeps Runtime: nodejs26.x. Base: Build Failed, "Error: 'nodejs26.x' runtime is not supported", exit 1. Log 10 is a discarded base run that failed on a cp race (template not yet written); log 11 is the valid base run.
  • S4: Head zip: sam init --runtime nodejs26.x --app-template hello-world exit 0, template.yaml has Runtime: nodejs26.x. Head image: the plan's --app-template hello-world fails with "Can't find application template hello-world", but nodejs24.x-base fails identically and the app-templates manifest names the image template hello-world-lambda-image, so the plan's command was wrong, not the PR. With hello-world-lambda-image: exit 0, Dockerfile FROM public.ecr.aws/lambda/nodejs:26, DockerTag nodejs26.x-v1. Base: both commands rejected by click with Invalid value for --runtime / --base-image, exit 2.
  • S5: Head: entrypoint ends with /var/lang/bin/node --no-lazy --expose-gc /var/runtime/index.mjs; env has NODE_PATH with /opt/nodejs/node26/node_modules, NODE_OPTIONS --inspect-brk=0.0.0.0:5858 --max-http-header-size 81920, AWS_EXECUTION_ENV=AWS_Lambda_nodejs26.x, X=1. Comparison with nodejs24.x printed True True. Base: DebuggingNotSupported for nodejs26.x.
  • S6: Head: samdev local invoke Fn (nodejs26.x) exit 0. SAM pulled public.ecr.aws/lambda/nodejs:26-x86_64, built public.ecr.aws/lambda/nodejs:26-rapid-x86_64, and the handler returned "Hello World". Base: "Error: Unsupported Lambda runtime: nodejs26.x", exit 1, no image pulled. Deploy/sync of nodejs26.x (plan needs_cloud) was not run.

🤖 Automated hands-on test — not a review approval · model claude-opus-5.5 · Kiro kiro-cli 2.33.1 · build LambdaToolingHandsOn-Docker:18c70213-0038-49b3-8e43-f7381b9e7f5d · commit c0333bc

History (2)
Commit Result When (UTC) Build
c0333bc No problems observed 2026-11-13 18:26 LambdaToolingHandsOn-Docker:18c70213-0038-49b3-8e43-f7381b9e7f5d
c5a40b3 No problems observed 2026-11-10 22:41 LambdaToolingHandsOn-Docker:4892bc60-2203-4b2b-911a-878af66e7eb7

@github-actions github-actions Bot added area/local/start-api sam local start-api command area/build sam build command area/local/invoke sam local invoke command area/local/start-invoke area/schema JSON schema file pr/internal labels Nov 10, 2026
@vicheey
vicheey merged commit 75c8cd6 into aws:develop Nov 13, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build sam build command area/local/invoke sam local invoke command area/local/start-api sam local start-api command area/local/start-invoke area/schema JSON schema file pr/internal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Add nodejs26.x runtime support

3 participants