New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-lambda

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-lambda

AWS Lambda function generator.

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-84.62%
Maintainers
1
Weekly downloads
 
Created
Source

generator-lambda Build Status

AWS Lambda function generator.

What it can do:

  • Lambda function create/update/delete wrap.
  • Connecting lambda to inputed S3 bucket with selected event
  • Test code locally
  • Provide test json in test directory, json files are same as the provide at the Lambda online test page. You can append or edit it definitely.

Getting Started

Install and use generator

# install generator
npm install -g generator-lambda

# run
yo lambda

Work with the generated lambda function

Structure

├── Makefile
├── index.js
├── package.json
├── test
│   ├── ctx.js
│   ├── helloworld.json
│   ├── s3_delete.json
│   ├── s3_put.json
│   └── sns.json
└── test.js
  • index.js Function code here, please do not change the file name, if you want, please change the Makefile too.
  • Makefile Wrap of aws cli, provide function create/update/delete
  • package.json Any extra dependency here, use npm i --save for reuse.
  • test.js Use node test.js to test locally, feel free to edit the file as you want

Makefile integrated

# create function, and connect it with inputed s3 bucket
make create

# update function code
make

# run code locally
make test

# delete function
make delete

License

MIT

Keywords

FAQs

Package last updated on 14 Sep 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc