Skip to content

Commit 63c84c0

Browse files

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ AWS_MEMORY_SIZE // (default: 128)
8080
AWS_TIMEOUT // (default: 60)
8181
AWS_RUN_TIMEOUT // (default: 3)
8282
AWS_DESCRIPTION // (default: package.json.description or '')
83-
AWS_RUNTIME // (default: 'nodejs10.x')
83+
AWS_RUNTIME // (default: 'nodejs12.x')
8484
AWS_PUBLISH // (default: false)
8585
AWS_FUNCTION_VERSION // (default: '')
8686
AWS_VPC_SUBNETS // (default: '')
@@ -116,7 +116,7 @@ Options:
116116
-h, --help output usage information
117117
-H, --handler [index.handler] Lambda Handler {index.handler}
118118
-j, --eventFile [event.json] Event JSON File
119-
-u, --runtime [nodejs10.x] Lambda Runtime
119+
-u, --runtime [nodejs12.x] Lambda Runtime
120120
-t, --timeout [3] Lambda Timeout
121121
-f, --configFile [] Path to file holding secret environment variables (e.g. "deploy.env")
122122
-x, --contextFile [context.json] Context JSON File
@@ -176,7 +176,7 @@ Options:
176176
-m, --memorySize [128] Lambda Memory Size
177177
-t, --timeout [3] Lambda Timeout
178178
-d, --description [missing] Lambda Description
179-
-u, --runtime [nodejs10.x] Lambda Runtime
179+
-u, --runtime [nodejs12.x] Lambda Runtime
180180
-p, --publish [false] Lambda Publish
181181
-L, --lambdaVersion [] Lambda Function Version
182182
-b, --vpcSubnets [] Lambda Function VPC Subnets
@@ -210,7 +210,7 @@ AWS Lambda will let you set environment variables for your function. Use the sam
210210

211211
## Node.js Runtime Configuration
212212

213-
AWS Lambda now supports Node.js 10, Node.js 8.10 and Node.js 6.10. Please also check the [Programming Model (Node.js)](http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html) page.
213+
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.
214214

215215
## Post install script
216216
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.

bin/node-lambda

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const AWS_MEMORY_SIZE = process.env.AWS_MEMORY_SIZE || 128
2929
const AWS_TIMEOUT = process.env.AWS_TIMEOUT || 60
3030
const AWS_RUN_TIMEOUT = process.env.AWS_RUN_TIMEOUT || 3
3131
const AWS_DESCRIPTION = process.env.AWS_DESCRIPTION || packageJson.description || ''
32-
const AWS_RUNTIME = process.env.AWS_RUNTIME || 'nodejs10.x'
32+
const AWS_RUNTIME = process.env.AWS_RUNTIME || 'nodejs12.x'
3333
const AWS_PUBLISH = process.env.AWS_PUBLISH || false
3434
const AWS_FUNCTION_VERSION = process.env.AWS_FUNCTION_VERSION || ''
3535
const AWS_VPC_SUBNETS = process.env.AWS_VPC_SUBNETS || ''

lib/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ AWS_HANDLER=index.handler
1010
AWS_MEMORY_SIZE=128
1111
AWS_TIMEOUT=3
1212
AWS_DESCRIPTION=
13-
AWS_RUNTIME=nodejs10.x
13+
AWS_RUNTIME=nodejs12.x
1414
AWS_VPC_SUBNETS=
1515
AWS_VPC_SECURITY_GROUPS=
1616
AWS_TRACING_CONFIG=

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

test/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const originalProgram = {
2020
memorySize: 128,
2121
timeout: 3,
2222
description: '',
23-
runtime: 'nodejs10.x',
23+
runtime: 'nodejs12.x',
2424
deadLetterConfigTargetArn: '',
2525
tracingConfig: '',
2626
Layers: '',

test/node-lambda.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ describe('bin/node-lambda', () => {
156156
process.env.AWS_RUNTIME = 'test'
157157
})
158158
after(() => {
159-
process.env.AWS_RUNTIME = 'nodejs10.x'
159+
process.env.AWS_RUNTIME = 'nodejs12.x'
160160
})
161161

162162
it('`node-lambda run` exitCode is `254` (callback(null))', (done) => {

0 commit comments

Comments
 (0)