Skip to content

Commit d9862cd

Browse files
authored
Drop nodejs8.10 from runtime (#516)
`nodejs8.10` * Deprecation (Create): January 6, 2020 * Deprecation (Update): February 3, 2020 https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html
1 parent 74825d8 commit d9862cd

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
@@ -212,7 +212,7 @@ AWS Lambda will let you set environment variables for your function. Use the sam
212212

213213
## Node.js Runtime Configuration
214214

215-
AWS Lambda now supports Node.js 12, Node.js 10 and Node.js 8.10. Please also check the [Programming Model (Node.js)](http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html) page.
215+
AWS Lambda now supports Node.js 12 and Node.js 10. Please also check the [Programming Model (Node.js)](http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html) page.
216216

217217
## Post install script
218218
When running `node-lambda deploy` if you need to do some action after `npm install --production` and before deploying to AWS Lambda (e.g. replace some modules with precompiled ones or download some libraries, replace some config file depending on environment) you can create `post_install.sh` script. If the file exists the script will be executed (and output shown after execution) if not it is skipped. Environment string is passed to script as first parameter so you can use it if needed. Make sure that the script is executable.

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 (!['nodejs8.10', 'nodejs10.x', 'nodejs12.x'].includes(program.runtime)) {
54+
if (!['nodejs10.x', 'nodejs12.x'].includes(program.runtime)) {
5555
console.error(`Runtime [${program.runtime}] is not supported.`)
5656
process.exit(254)
5757
}

0 commit comments

Comments
 (0)