2018-07-29 05:53:33 +00:00
|
|
|
# Consumer
|
|
|
|
|
|
|
|
|
|
Read records from the Kinesis stream
|
|
|
|
|
|
|
|
|
|
### Environment Variables
|
|
|
|
|
|
|
|
|
|
Export the required environment vars for connecting to the Kinesis stream and Redis for checkpoint:
|
|
|
|
|
|
|
|
|
|
```
|
2019-04-10 05:03:12 +00:00
|
|
|
export AWS_PROFILE=
|
2018-07-29 05:53:33 +00:00
|
|
|
export AWS_REGION=
|
|
|
|
|
export REDIS_URL=
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Run the consumer
|
|
|
|
|
|
2019-04-10 05:03:12 +00:00
|
|
|
$ go run main.go --app appName --stream streamName
|