lamb·i·nat·or
n.
- A set of command line tools for managing AWS Lambda functions
There are several projects in this space, but none quite met our needs:
- Simple to use, focused on AWS
- No need to integrate with API Gateway
- Ability to test locally with external binaries available in your PATH, but deploy to AWS Lambda with Linux-compiled binaries
- Ability to manage several functions in a single repository
- Ability to write in current JavaScript syntax and transpile to Node6.10 for deployment
npm install lambinator -g
lamb new my-function-name
-- create a new function directory with lambinator assets (.env, lambinator.json, my-function-name.js)lamb run my-function-name
-- run a function locallylamb deploy my-function-name --env development
-- deploy a function to AWS Lambda
npm install -g lambinator
mkdir lamb-test && cd lamb-test
lamb new hello-world
lamb run hello-world
In order to deploy Lambda functions you will need IAM credentials with adequate privileges. Lambinator uses the AWS SDK for Javascript, whose permission model is described here. Our recommended approach is to not specify credentials in any .env files