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
-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
125
125
-L, --lambdaVersion [custom-version] Lambda Version
@@ -137,19 +137,7 @@ AWS Lambda will let you set environment variables for your function. Use the sam
137
137
138
138
## Node.js Runtime Configuration
139
139
140
-
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,
141
-
`context.done()`, `context.succeed()`, and `context.fail()` are deprecated in favor of the Node convention of passing in
142
-
a callback function. These will still work for now for backward compatibility, but are no longer recommended.
143
-
144
-
v0.10.36 is still supported, and can be targeted by changing the `AWS_RUNTIME` value to `nodejs` in the `.env` file.
145
-
146
-
Runtime context options available :
147
-
148
-
- context.getRemainingTimeInMillis()
149
-
- context.done() ***deprecated***
150
-
- context.fail() ***deprecated***
151
-
- context.succeed() ***deprecated***
152
-
140
+
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.
153
141
154
142
## Post install script
155
143
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.
0 commit comments