- 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
You need an AWS account and the AWS CLI configured:
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.
npm run create-stack
npm run update-stack
npm run delete-stack
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
.
Please read this blog post of mine providing more details about this project: Introducing a Simple AWS Lambda Starter Kit for NodeJS Using CloudFormation.