Mitch Garnaat

Add info on add-event-source command.

Showing 1 changed file with 13 additions and 0 deletions
...@@ -34,6 +34,7 @@ Where commands is one of: ...@@ -34,6 +34,7 @@ Where commands is one of:
34 * deploy - deploy the CloudFormation template containing the IAM roles and zip the function and upload it to AWS Lambda 34 * deploy - deploy the CloudFormation template containing the IAM roles and zip the function and upload it to AWS Lambda
35 * test - send test data to the new Lambda function 35 * test - send test data to the new Lambda function
36 * tail - display the most recent log events for the function 36 * tail - display the most recent log events for the function
37 +* add-event-source - hook up an event source to your Lambda function
37 * delete - delete the CloudFormation stack containing the IAM roles and delete the Lambda function 38 * delete - delete the CloudFormation stack containing the IAM roles and delete the Lambda function
38 39
39 The ``config file`` is a YAML format file containing all of the information 40 The ``config file`` is a YAML format file containing all of the information
...@@ -42,3 +43,15 @@ about your Lambda function. ...@@ -42,3 +43,15 @@ about your Lambda function.
42 An example project based on a Kinesis stream can be found in 43 An example project based on a Kinesis stream can be found in
43 [samples/kinesis](https://github.com/garnaat/kappa/tree/develop/samples/kinesis). 44 [samples/kinesis](https://github.com/garnaat/kappa/tree/develop/samples/kinesis).
44 45
46 +The basic workflow would be to:
47 +
48 +* Create your Lambda function
49 +* Create your CloudFormation template with the execution and invocation roles
50 +* Create some sample data
51 +* Create the YAML config file with all of the information
52 +* Run ``kappa --config <path-to-config> deploy`` to create roles and upload function
53 +* Run ``kappa --config <path-to-config> test`` to invoke the function with test data
54 +* Run ``kappa --config <path-to-config> tail`` to view the functions output in CloudWatch logs
55 +* Run ``kappa --config <path-to-config> add-event-source`` to hook your function up to the event source
56 +* Run ``kappa --config <path-to-config> tail`` to see more output
57 +
......