README.md

local-kinesis-lambda-runner

The Rabble Rouser project makes extensive use of kinesis streams, and also uses lambda functions to process events from
the stream. We want a way to spin up a whole Rabble Rouser instance locally, and this package is part of the solution to
that problem.

This is a script that will poll a kinesis stream forever, and invoke your lambda function whenever a new event is
detected.

Note that this is only intended for local development with something like kinesalite,
so the AWS region and credentials are internally hardcoded to arbitrary values. This script could be extended to support
running against a real kinesis stream, it would just be a matter of parameterising the extra config.

For a full example of this script in action, see the docker-compose config for rabblerouser/core.

Publishing this library

Scoped packages (which this is) are private by default on npm, which is a paid feature. To publish publically, use this
command: