Skip to content

Conversation

@npalm
Copy link
Member

@npalm npalm commented Nov 25, 2025

Upgrade to Lambda runtime Node24.x

  • Upgrade minimal AWS Terraform provider
  • Upgrade all lambda runtimes by default to 24x
  • Breaking change!

Dependency and environment upgrades:

  • Updated all references to Node.js from version 22 to version 24 in GitHub Actions workflows (.github/workflows/lambda.yml, .github/workflows/release.yml) and Dockerfiles (.ci/Dockerfile, .devcontainer/Dockerfile). [1] [2] [3] [4]
  • Upgraded the base Docker images for both the CI and devcontainer environments to use newer Node.js image digests. [1] [2]

Terraform provider updates:

  • Increased the minimum required version for the AWS Terraform provider to >= 6.21 in all example versions.tf files. [1] [2]
  • Updated the .terraform.lock.hcl files in all examples to lock the AWS provider at version 6.22.1, the local provider at 2.6.1, and the null provider at 3.2.4 where applicable, along with updated hash values and constraints. [1] [2]

@npalm npalm requested review from a team as code owners November 25, 2025 08:57
@github-actions
Copy link
Contributor

github-actions bot commented Nov 25, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@npalm npalm changed the base branch from main to next November 28, 2025 22:29
@npalm
Copy link
Member Author

npalm commented Nov 28, 2025

After approval / checks branch will be morged in next. We use the branch to collect breaking changes.

@npalm npalm requested a review from Copilot November 28, 2025 22:30
Copilot finished reviewing on behalf of npalm November 28, 2025 22:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the Lambda runtime from Node.js 22 to Node.js 24 and increases the minimum required AWS Terraform provider version to 6.21. This is a breaking change that affects all Lambda functions and examples in the repository.

Key Changes:

  • Updated default Lambda runtime from nodejs22.x to nodejs24.x across all modules
  • Upgraded minimum AWS Terraform provider requirement from various 5.x versions to >= 6.21
  • Updated Node.js version references in CI/CD workflows, Docker images, and development environment

Reviewed changes

Copilot reviewed 65 out of 73 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
versions.tf (root and modules) Updated AWS provider minimum version from 5.x to >= 6.21
variables.tf (multiple modules) Changed default lambda_runtime from nodejs22.x to nodejs24.x
README.md (multiple modules/examples) Updated documentation to reflect new provider and runtime versions
.nvmrc Updated Node version from v22 to v24
.github/workflows/*.yml Updated GitHub Actions to use Node 24
.ci/Dockerfile, .devcontainer/Dockerfile Updated Docker base images to Node 24 digests
.tflint.hcl Upgraded tflint AWS plugin version from 0.36.0 to 0.44.0
examples/*/versions.tf Updated AWS provider version constraints across all examples
Files not reviewed (8)
  • examples/default/.terraform.lock.hcl: Language not supported
  • examples/ephemeral/.terraform.lock.hcl: Language not supported
  • examples/external-managed-ssm-secrets/.terraform.lock.hcl: Language not supported
  • examples/lambdas-download/.terraform.lock.hcl: Language not supported
  • examples/multi-runner/.terraform.lock.hcl: Language not supported
  • examples/permissions-boundary/.terraform.lock.hcl: Language not supported
  • examples/prebuilt/.terraform.lock.hcl: Language not supported
  • examples/termination-watcher/.terraform.lock.hcl: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@guicaulada guicaulada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a first glance I just see a minor mismatch on image digest.

I will need some time to be able to properly test if there any issues with the lambdas and the updated runtime, but I wouldn't expect any issues from this.

@guicaulada
Copy link
Contributor

I have tested this in a dev environment using the new providers and lambda runtime.

The environment behaved normally and executed 200 simultaneous workflows without issues.

I'm ready to approve once the digest for the node:24 image is adjusted.

@npalm npalm force-pushed the next branch 2 times, most recently from 7149b77 to 19a94eb Compare December 6, 2025 18:38
@npalm npalm requested a review from guicaulada December 6, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants