2019-04-13 05:15:49 +00:00
|
|
|
# Consumer with mysl checkpoint
|
|
|
|
|
|
|
|
|
|
Read records from the Kinesis stream using mysql 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=
|
2019-04-13 05:15:49 +00:00
|
|
|
export AWS_REGION=
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Run the consumer
|
|
|
|
|
|
|
|
|
|
go run main.go --app <appName> --stream <streamName> --table <tableName> --connection <connectionString>
|
|
|
|
|
|
|
|
|
|
Connection string should look something like
|
|
|
|
|
|
2019-07-29 04:18:40 +00:00
|
|
|
user:password@/dbname
|