This runs a migration on the primary node by doing the following:
- Disables traffic to load balancer
- Grab the domain and desired secondary node count from terraform.tfvars
- Stops all primary and secondary nodes
- Waits for health check to fail
- Redeploys the primary node, causing the migration to run
- Redeploys the secondary nodes
- Waits for health check to succeed
- Re-enables traffic to load balancer
On running the script on my personal setup, the migration script took 15 minutes