Socket
Socket
Sign inDemoInstall

aws-lambda

Package Overview
Dependencies
39
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aws-lambda

Deploy AWS Lambda functions from command line using a .json config file.


Version published
Weekly downloads
854K
increased by2.66%
Maintainers
1
Install size
51.0 MB
Created
Weekly downloads
 

Readme

Source

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": ""
}

Keywords

FAQs

Last updated on 06 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc