You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Also if someone can come up with a better name, please do.
Usage
First install the package as a development dependency:
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:
npm publish --access=public
About
A script for local development of lambda functions that listen to kinesis streams