kinesis-consumer/examples/producer
Harlow Ward 7d5601fbde Control flow with custom errors types
Major changes:

* Remove the concept of `ScanStatus` in favor of custom errors

Minor changes:

* Move optional config to new file

https://github.com/harlow/kinesis-consumer/issues/75
2019-02-18 11:06:21 -08:00
..
main.go Control flow with custom errors types 2019-02-18 11:06:21 -08:00
README.md Add logs for start scan and checkpoints 2017-11-22 17:52:41 -08:00
users.txt Add dummy users data for producing onto stream 2018-12-30 07:28:18 -08:00

Producer

A prepopulated file with JSON users is available on S3 for seeing the stream:

https://s3.amazonaws.com/kinesis.test/users.txt

Environment Variables

Export the required environment vars for connecting to the Kinesis stream:

export AWS_ACCESS_KEY=
export AWS_REGION_NAME=
export AWS_SECRET_KEY=

Running the code

$ curl https://s3.amazonaws.com/kinesis.test/users.txt > /tmp/users.txt
$ go run main.go --stream streamName