0.1.0 • Published 7 years ago

generator-simple-aws-lambda v0.1.0

Weekly downloads
2
License
Apache-2.0
Repository
-
Last release
7 years ago

Simple AWS Lambda Generator

A Yeoman generator providing scaffolding for an AWS Lambda.

Installation

npm install -g generator-simple-aws-lambda

If you've not done so previously you'll also need to install Yeoman.

Usage

yo generator-simple-aws-lambda

Inputs

NameDescription
Lambda nameThe name of the Lambda. This will be used both as the name of the deployed Lambda and the name of the handler's Javascript
AuthorAuthor of the Lambda
Lambda descriptionA description of the Lambda
Initial versionWhat version should be attributed to the package.json upon generation
AWS regionThe region the Lambda will be deployed to
Executing role ARNThe AWS IAM role which will be used to execute the Lambda once deployed
Will this Lambda process batch events?Some event sources, such as DynamoDB Streams, send numerous records per event while other sources, such as the API Gateway, send a single event. The generated handler will differ based on this option.

What's Generated

  • [name].js - The main handler Javascript named based on the name input
  • package.json
  • .gitignore
  • tasks.js - Task definitions for the AWS Lambda Toolkit used to facilitate Lambda deployment
  • .awstoolkitconfig.json - Initial configuration for the AWS Lambda Toolkit
  • README.md - Provides instructions for testing and deploying the generated Lambda
  • test/test.js - Unit test scaffolding using Mocha, Should, and Promised Lambda Context
0.1.0

7 years ago