docker pull osheroff/maxwell
After running through the prerequisites, you will have:
- a Maxwell image named
osheroff/maxwell
- Create an Aurora instance: Creating an Amazon Aurora DB Cluster
- Create a
DB Cluster Parameter Group
: Creating a DB Parameter Group - Activate the binlog in your
DB Cluster Parameter Group
: Binary Logging Format - Apply the
DB Cluster Parameter Group
to the Aurora Instance- Navigate to RDS Instances.
- Select the new Aurora instance.
- Select
Modify
fromInstance Actions
. - Select the new
DB Cluster Parameter Group
. Continue
to save.- Select
Reboot
fromInstance Actions
.
- Generate a schema.
Maxwell's Dockerfile uses the Kafka producer by default, but we're going to override the producer.
Run a self-destructing Maxwell container with the STDOUT producer:
docker run -it --rm --name maxwell osheroff/maxwell bin/maxwell --user=AURORA_USER --password=AURORA_PASSWORD --host=AURORA_HOST --producer=stdout
output:
19:17:12,414 INFO Maxwell - Maxwell v1.7.0 is booting (StdoutProducer), starting at BinlogPosition[mysql-bin-changelog.000002:45695]
19:17:13,070 INFO MysqlSavedSchema - Restoring schema id 1 (last modified at BinlogPosition[mysql-bin-changelog.000002:3521])
19:17:16,381 INFO OpenReplicator - starting replication at mysql-bin-changelog.000002:45695
{"database":"AURORA_DATABASE","table":"AURORA_TABLE","type":"update","ts":1484594323,"xid":1579291,"commit":true,"data":{"id":4,"first_name":"Tim","last_name":"Younger"},"old":{"first_name":"Timothy"}}