AWS lambda documentation change
Summary
Updated Node.js runtime references from 18.x to 22.x in prerequisites, SAM CLI commands, and Lambda create-function examples
Security assessment
Change involves runtime version update without explicit security context. Node.js version updates may include security improvements but documentation change doesn't mention vulnerabilities
Diff
diff --git a/lambda/latest/dg/typescript-package.md b/lambda/latest/dg/typescript-package.md index 4341aaf68..d284ab8a2 100644 --- a/lambda/latest/dg/typescript-package.md +++ b/lambda/latest/dg/typescript-package.md @@ -38 +38 @@ To complete the steps in this section, you must have the following: - * Node.js 18.x + * Node.js @@ -47 +47 @@ To complete the steps in this section, you must have the following: - sam init --app-template hello-world-typescript --name sam-app --package-type Zip --runtime nodejs18.x + sam init --app-template hello-world-typescript --name sam-app --package-type Zip --runtime nodejs22.x @@ -90 +90 @@ To complete the steps in this section, you must have the following: - * Node.js 18.x + * Node.js @@ -195 +195 @@ To complete the steps in this section, you must have the following: - * Node.js 18.x + * Node.js @@ -263 +263 @@ In this example, the `"postbuild"` command uses the [7zip](https://www.7-zip.org - aws lambda create-function --function-name hello-world --runtime "nodejs18.x" --role arn:aws:iam::123456789012:role/lambda-ex --zip-file "fileb://dist/index.zip" --handler index.handler + aws lambda create-function --function-name hello-world --runtime "nodejs22.x" --role arn:aws:iam::123456789012:role/lambda-ex --zip-file "fileb://dist/index.zip" --handler index.handler