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
This repository was archived by the owner on Dec 25, 2019. It is now read-only.

awspilot/aws-lambda

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm page

node-lambda

Command line tool deploy code to AWS Lambda.

Installation

npm install -g aws-lambda

Usage

// if installed globally then
lambda deploy /path/to/my-function.lambda

// if 'npm installed' without the -g then you must use the full path
node_modules/.bin/lambda /path/to/my-function.lambda

Configuration File

// PATH must point to your code folder and is relative to the .lambda file
// PATH can be relative or absolute
// If not set, Runtime defaults to "nodejs"
// Possible Runtime values: java8, nodejs, nodejs4.3, python2.7
// If not set, FunctionName defaults to the name of the config file without extension ("my-function" in this case)

// Sample contents of my-function.lambda

{
	"PATH": "./test-function",
	"AWS_KEY": "your_key",
	"AWS_SECRET": "your_secret",
	"AWS_REGION": "us-east-1",

	"FunctionName": "test-lambda",
	"Role": "your_amazon_role",
	"Runtime": "nodejs",
	"Handler": "index.handler",
	"MemorySize": "128",
	"Timeout": "3",
	"Description": ""
}

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

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