Skip to content

Conversation

kakakakakku
Copy link
Contributor

@kakakakakku kakakakakku commented Aug 22, 2025

Issue #, if available:
N/A

Description of changes:
To prevent future deployment issues, I updated the Lambda Node.js runtime version to nodejs22.x.

While testing dynamodb-streams-lambda-terraform, I noticed that the Lambda runtime version nodejs16.x was deprecated. Although it's still deployable at the moment, it will not be allowed after October 1, 2025.
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

Check

terraform apply completed successfully and works good.

image

Thank you😀


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: I renamed the file because it had the following error.

╷
│ Error: Archive creation error
│ 
│   with data.archive_file.lambda_zip_file,
│   on main.tf line 46, in data "archive_file" "lambda_zip_file":
│   46: data "archive_file" "lambda_zip_file" {
│ 
│ error creating archive: error archiving file: could not archive missing file: ./src/index.js
╵

@@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.27"
version = "~> 5.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: Older version does not support Node.js 22 runtime. So I updated the version to v5.

@bfreiberg
Copy link
Contributor

Hi @kakakakakku thanks for your contribution. We really appreciate maintenance updates!

@bfreiberg bfreiberg merged commit 850ccf8 into aws-samples:main Sep 12, 2025
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.

4 participants