Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ryanmt/node-lambda

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-lambda

node-lambda

Deploy your node.js application to Amazon Lambda.

BuildStatus NPM version

Installation

npm install -g node-lambda

Usage

Run your Amazon Lambda app locally.

node-lambda run

When ready to deploy for the first time, run the following.

node-lambda setup
echo ".env\nevent.json" >> .gitignore
node-lambda deploy -e staging

You can subsequenetly, just call the following.

node-lambda deploy -e staging

Command line flags

You can opt to use command line flags instead of a .env. file.

run [flags]

node-lambda run [flags]
Example
./node_modules/.bin/node-lambda run --help

  Usage: run [options]

  Options:

    -h, --help                     output usage information
    -h, --handler [index.handler]  Lambda Handler {index.handler}

deploy [flags]

node-lambda deploy [flags]
Example
./node_modules/.bin/node-lambda deploy --help

  Usage: deploy [options]

  Options:

    -h, --help                        output usage information
    -e, --environment [staging]       Choose environment {development, stating, production}
    -a, --accessKey [your_key]        AWS Access Key
    -s, --secretKey [your_secret]     AWS Secret Key
    -r, --region [us-east-1]          AWS Region
    -n, --functionName [node-lambda]  Lambda FunctionName
    -h, --handler [index.handler]     Lambda Handler {index.handler}
    -m, --mode [event]                Lambda Mode
    -o, --role [your_role]            Amazon role
    -m, --memorySize [128]            Lambda Memory Size
    -t, --timeout [3]                 Lambda Timeout
    -d, --description [missing]       Lambda Description
    -u, --runtime [nodejs]            Lambda Runtime

About

Command line tool to locally run and deploy your node.js application to Amazon Lambda

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.