2017-11-20 16:21:40 +00:00
|
|
|
# Consumer
|
|
|
|
|
|
|
|
|
|
Read records from the Kinesis stream
|
|
|
|
|
|
|
|
|
|
### 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=
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Run the consumer
|
|
|
|
|
|
2017-11-23 01:52:41 +00:00
|
|
|
$ go run main.go --app appName --stream streamName
|