Skip to content

Helper module for deploying AWS Lambda functions in Node.js.

License

Notifications You must be signed in to change notification settings

GiDW/aws-lambda-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jul 1, 2017
c5f3041 · Jul 1, 2017

History

47 Commits
Jul 1, 2017
Jun 30, 2017
Jul 1, 2017
Jul 1, 2017
Jun 11, 2017
Jul 1, 2017
Jun 24, 2017
Jun 11, 2017
Jul 1, 2017
Jun 8, 2017
Jun 25, 2017
Jul 1, 2017
Jul 1, 2017
Jul 1, 2017

Repository files navigation

aws-lambda-deploy

Usage

gald [command] [option]

There are 3 commands available

gald init
gald test
gald deploy

Commands

init

Create (missing) configuration files that provide information to the module about the AWS Lambda function.

After running init you should consider adding lambda-secrets.json to your .gitignore.

The Handler property consists of the module name and the function name.

For example a file handler.js with:

exports.myHandler = function () {};

The resulting Handler property looks like this:

"Handler": "handler.myHandler"

test

Execute all defined tests in lambda-test.json or a different JSON file.

gald test [optional json file]

deploy

Deploys the Lambda function to AWS Lambda. In case the Lambda function does not exist or the configuration has been changed, the user will be notified.

Deploy looks for the archive defined in lambda-config.json under the property archiveName. Your build system will have to provide a zip file with the necessary components for the AWS Lambda function.

For example, have a build script that looks like this:

zip -r -9 archive.zip handler.js

If your AWS Lambda function depends on other packages, make sure to include the node_modules folder, with the dependencies installed, in your zip file.

About

Helper module for deploying AWS Lambda functions in Node.js.

Resources

License

Stars

Watchers

Forks

Packages

No packages published