You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-u, --runtime [nodejs4.3] Lambda Runtime {nodejs4.3, nodejs} - "nodejs4.3" is the current standard, "nodejs" is v0.10.36
71
72
```
72
73
73
74
#### package
@@ -111,7 +112,7 @@ $ node-lambda deploy --help
111
112
-m, --memorySize [128] Lambda Memory Size
112
113
-t, --timeout [3] Lambda Timeout
113
114
-d, --description [missing] Lambda Description
114
-
-u, --runtime [nodejs] Lambda Runtime
115
+
-u, --runtime [nodejs4.3] Lambda Runtime {nodejs4.3, nodejs} - "nodejs4.3" is the current standard, "nodejs" is v0.10.36
115
116
-p, --publish [false] This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation
AWS Lambda doesn't let you set environment variables for your function, but in many cases you will need to configure your function with secure values that you don't want to check into version control, for example a DB connection string or encryption key. Use the sample `deploy.env` file in combination with the `--configFile` flag to set values which will be prepended to your compiled Lambda function as `process.env` environment variables before it gets uploaded to S3.
125
126
127
+
## Node.js Runtime Configuration
128
+
129
+
AWS Lambda now supports Node.js v4.3.2, and there have been some [API changes](http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-using-old-runtime.html) for the new version. Most notably,
130
+
`context.done()`, `context.succeed()`, and `context.fail()` are deprecated in favor of the Node convention of passing in
131
+
a callback function. These will still work for now for backward compatibility, but are no longer recommended.
132
+
133
+
v0.10.36 is still supported, and can be targeted by changing the `AWS_RUNTIME` value to `nodejs` in the `.env` file.
0 commit comments