Code specific to the Twitter Labs endpoint for COVID-19 using Amazon Kinesis Firehose
Before you start, make sure to have docker
as well as docker-compose
installed on your host machine.
- Create an AWS delivery stream. Make sure to pick "PUT action" as source. Destination can be S3 in the simplest case.
- Create an IAM user with
AmazonKinesisFirehoseFullAccess
permission git clone https://github.com/digitalepidemiologylab/covid-stream.git && cd covid-stream
- Copy the example secrets file
cp secrets.list.example secrets.list
- Open the file
secrets.list
and fill inCONSUMER_KEY
andCONSUMER_SECRET
of the app which links to the COVID stream. As well as the AWS credentials of the IAM user created under 2). You may want to provide a Rollbar token (for error notifications), feel free to leave empty. - Run either
source build_production.sh
(runs in the background) orsource build_development.sh
. This will launch 4 streams for each partition.
Feel free to write to me if you have questions [email protected]