Simple demo application illustrating running a failover test against an RDS database.
- LocalStack
- Docker
- Python
makeawslocal
To install the dependencies:
make installMake sure that LocalStack is started:
LOCALSTACK_AUTH_TOKEN=... DEBUG=1 localstack startRun the scenario Python script main.py as follows:
make runYou should see some logs from the script, similar to the output below:
Creating global cluster 'global-cluster-1'
Creating primary DB cluster 'rds-cluster-1'
Creating secondary DB cluster 'rds-cluster-2'
Running assertions, to ensure the cluster writer has been updated
Start global DB cluster failover ...
✅ Test done - all assertions succeededThis code is available under the Apache 2.0 license.