AWS Lambda CloudFormation NodeJS Starter
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
FooFunction
bin
.gitignore
README.md
cloudformation.yaml
config.env
package.json

README.md

AWS Lambda CloudFormation NodeJS Starter

  • uses the official AWS CLI and CloudFormation to manage AWS resources
  • no other dependencies are required
  • very basic bash scripts, easy to learn and change
  • source code of Lambda functions published on S3

Prerequisites

You need an AWS account and the AWS CLI configured:

Installation

git clone git@github.com:OrKoN/aws-lambda-nodejs-cloudformation-starter-kit.git lambda-starter
cd lambda-starter

Modify the code in FooFunction/index.js or create new functions.

Deploying the project

npm run create-stack

Updating the project

npm run update-stack

Deleting the project

npm run delete-stack

Adding New Functions

To add a new function you need to create a new folder where the function will be located and add references to the new function wherever you find a TODO comment in the shell scripts. Additionally, you need to create a build.sh which will build your function and output its version. Also the function resource and its role need to be added to the cloudformation.yaml.

More Info

Please read this blog post of mine providing more details about this project: Introducing a Simple AWS Lambda Starter Kit for NodeJS Using CloudFormation.