Posts

Migrating AWS Aurora MySQL Cross Accounts

Migrating AWS Aurora MySQL Across Accounts It turns out there is no straightforward, built-in solution to migrate an Aurora MySQL instance from one AWS account to another. Interestingly, AWS provides cross-region read replicas, so cross-region migration is essentially supported out of the box—but cross-account or even cross-cluster migration within the same region is surprisingly challenging. In this post, migration refers to near–zero downtime migration for production workloads . Offline migration or downtime-tolerant approaches have many options (snapshots, dump/restore, DMS), but production environments typically require blue-green deployment and continuous replication until cutover. After research and experimentation, MySQL binlog replication proved to be the most practical solution, and it works across regions, clusters, and accounts. 1. Enable Binlog Replication on the Source Cluster On the source (master/write) Aurora MySQL cluster, update the parameter group: bi...

A Bit More MySQL

If you’re looking to deepen your understanding of MySQL — including partitions, indexing, and general best practices — here are some excellent reads: