Skip to content

Commit 5513e64

Browse files
authored
feat: drop nodejs10x from lambda runtime (#571)
nodejs10x will be dropped as it is no longer supported soon. https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html
1 parent 7412ba9 commit 5513e64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ AWS Lambda will let you set environment variables for your function. Use the sam
219219

220220
## Node.js Runtime Configuration
221221

222-
AWS Lambda now supports Node.js14, Node.js 12 and Node.js 10. Please also check the [Building Lambda functions with Node.js](https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html) page.
222+
AWS Lambda now supports Node.js14 and Node.js 12. Please also check the [Lambda runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) page.
223223

224224
## To deploy a container image to Lambda
225225

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ event_sources.json and ${program.eventFile} files as needed.`)
5151
}
5252

5353
run (program) {
54-
if (!['nodejs10.x', 'nodejs12.x', 'nodejs14.x'].includes(program.runtime)) {
54+
if (!['nodejs12.x', 'nodejs14.x'].includes(program.runtime)) {
5555
console.error(`Runtime [${program.runtime}] is not supported.`)
5656
process.exit(254)
5757
}

0 commit comments

Comments
 (0)