Kappa is a command line tool that makes it easier to deploy, update, and test functions for AWS Lambda.
- GitHub: https://github.com/garnaat/kappa
There are quite a few steps involved in developing a Lambda function. You have to:
- Write the function itself
- Create the IAM role required by the Lambda function itself (the executing role) to allow it access to any resources it needs to do its job
- Add additional permissions to the Lambda function if it is going to be used in a Push model (e.g. S3, SNS) rather than a Pull model.
- Zip the function and any dependencies and upload it to AWS Lambda
- Test the function with mock data
- Retrieve the output of the function from CloudWatch Logs Add an event source to the function
- View the output of the live function
Kappa tries to help you with some of this. It allows you to create an IAM managed policy or use an existing one. It creates the IAM execution role for you and associates the policy with it. Kappa will zip up the function and any dependencies and upload them to AWS Lambda. It also sends test data to the uploaded function and finds the related CloudWatch log stream and displays the log events. Finally, it will add the event source to turn your function on.
If you need to make changes, kappa will allow you to easily update your Lambda function with new code or update your event sources as needed.