JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 885526
  • Score
    100M100P100Q219674F

Wrapper around aws-sdk for nodejs to simplify working with Lambda

Package Exports

  • aws-lambda

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aws-lambda) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm page

node-lambda

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

Forked from node-lambda

Original work here

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 the deploy folder and is relative to the .lambda file
// PATH can be relative or absolute

// sample contents of my-function.lambda

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

    "Role": "your_amazon_role",
    "Handler": "index.handler",
    "MemorySize": "128",
    "Timeout": "3",
    "Description": ""
}