2018-06-18 02:27:10 +00:00
|
|
|
# Consumer with postgres checkpoint
|
|
|
|
|
|
|
|
|
|
Read records from the Kinesis stream using postgres as checkpoint
|
|
|
|
|
|
|
|
|
|
## Environment Variables
|
|
|
|
|
|
|
|
|
|
Export the required environment vars for connecting to the Kinesis stream:
|
|
|
|
|
|
|
|
|
|
```shell
|
2019-07-29 04:18:40 +00:00
|
|
|
export AWS_PROFILE=
|
2018-06-18 02:27:10 +00:00
|
|
|
export AWS_REGION=
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Run the consumer
|
|
|
|
|
|
|
|
|
|
go run main.go --app appName --stream streamName --table tableName --connection connectionString
|