Skip to content

Commit 0e2b69a

Browse files
abetomoDeviaVir
authored andcommitted
1 parent cd4082f commit 0e2b69a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ AWS_MEMORY_SIZE // (default: 128)
7878
AWS_TIMEOUT // (default: 60)
7979
AWS_RUN_TIMEOUT // (default: 3)
8080
AWS_DESCRIPTION // (default: package.json.description or '')
81-
AWS_RUNTIME // (default: 'nodejs6.10')
81+
AWS_RUNTIME // (default: 'nodejs8.10')
8282
AWS_PUBLISH // (default: false)
8383
AWS_FUNCTION_VERSION // (default: '')
8484
AWS_VPC_SUBNETS // (default: '')
@@ -112,7 +112,7 @@ Options:
112112
-h, --help output usage information
113113
-H, --handler [index.handler] Lambda Handler {index.handler}
114114
-j, --eventFile [event.json] Event JSON File
115-
-u, --runtime [nodejs6.10] Lambda Runtime
115+
-u, --runtime [nodejs8.10] Lambda Runtime
116116
-t, --timeout [3] Lambda Timeout
117117
-f, --configFile [] Path to file holding secret environment variables (e.g. "deploy.env")
118118
-x, --contextFile [context.json] Context JSON File
@@ -170,7 +170,7 @@ Options:
170170
-m, --memorySize [128] Lambda Memory Size
171171
-t, --timeout [3] Lambda Timeout
172172
-d, --description [missing] Lambda Description
173-
-u, --runtime [nodejs6.10] Lambda Runtime
173+
-u, --runtime [nodejs8.10] Lambda Runtime
174174
-p, --publish [false] Lambda Publish
175175
-L, --lambdaVersion [] Lambda Function Version
176176
-b, --vpcSubnets [] Lambda Function VPC Subnets
@@ -203,7 +203,7 @@ AWS Lambda will let you set environment variables for your function. Use the sam
203203

204204
## Node.js Runtime Configuration
205205

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

208208
## Post install script
209209
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
@@ -31,7 +31,7 @@ const AWS_MEMORY_SIZE = process.env.AWS_MEMORY_SIZE || 128
3131
const AWS_TIMEOUT = process.env.AWS_TIMEOUT || 60
3232
const AWS_RUN_TIMEOUT = process.env.AWS_RUN_TIMEOUT || 3
3333
const AWS_DESCRIPTION = process.env.AWS_DESCRIPTION || packageJson.description || ''
34-
const AWS_RUNTIME = process.env.AWS_RUNTIME || 'nodejs6.10'
34+
const AWS_RUNTIME = process.env.AWS_RUNTIME || 'nodejs8.10'
3535
const AWS_PUBLISH = process.env.AWS_PUBLISH || false
3636
const AWS_FUNCTION_VERSION = process.env.AWS_FUNCTION_VERSION || ''
3737
const AWS_VPC_SUBNETS = process.env.AWS_VPC_SUBNETS || ''

lib/main.js

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

5454
run (program) {
55-
if (['nodejs4.3', 'nodejs6.10'].indexOf(program.runtime) === -1) {
55+
if (['nodejs4.3', 'nodejs6.10', 'nodejs8.10'].indexOf(program.runtime) === -1) {
5656
console.error(`Runtime [${program.runtime}] is not supported.`)
5757
process.exit(254)
5858
}

test/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const originalProgram = {
2121
memorySize: 128,
2222
timeout: 3,
2323
description: '',
24-
runtime: 'nodejs6.10',
24+
runtime: 'nodejs8.10',
2525
deadLetterConfigTargetArn: '',
2626
tracingConfig: '',
2727
retentionInDays: 30,

0 commit comments

Comments
 (0)