A Serverless boilerplate for awesome AWS Lambda functions.
This project uses Node v6.10.3.
Before contributing, make sure you have the serverless
and aws-lambda-local
packages installed globally.
npm install -g serverless
npm install -g aws-lambda-local
This function will work on AWS Lambda. Ensure you have the correct credentials stored before deployment.
serverless package
serverless deploy
serverless invoke --function search --path event.json
This project compiles modules with Webpack.
webpack --config webpack.config.js
This function can be invoked or tested in your local environment.
lambda-local -f dist/handler.js -c context.json -e event.json
There is a convenience function to build and invoke a local build.
npm start
There is no watch task (yet) for this project. You must run each task separately.
Acknowledgment is cool. If you like this repo, feel free to credit.
- Kylie Rose: https://github.com/thisiskylierose
Check out these handy resources.