🧠 DBA Tip: AWS DMS Isn’t Just for Migrations — It’s a Hidden Gem for Continuous Replication
If you’ve ever had to move a live production database with near-zero downtime, AWS Database Migration Service (DMS) can save your weekend.
Here’s a quick example setup I recently used to replicate an on-prem Oracle DB to Amazon Aurora PostgreSQL — while keeping both in sync until cutover 👇
⚙️ Step 1: Create a Replication Instance
⚙️ Step 2: Define Source and Target Endpoints
⚙️ Step 3: Create and Start the Migration Task
Then start it:
🔍 Pro Tips for DBAs:
-
Use
--migration-type full-load-and-cdcto keep the target updated while users are still writing to the source. -
Check task status & latency:
-
Always validate with:
-
Combine with AWS SCT (Schema Conversion Tool) for object conversion before DMS handles data replication.
💡 Bonus use case: You can repurpose DMS for ongoing replication — e.g., feeding an analytics cluster or keeping a DR instance up to date.
Curious — how many of you have used DMS for continuous sync rather than one-time migrations?
#AWS #DMS #DBA #CloudMigration #PostgreSQL #Oracle #AWSCLI #DataEngineering #DevOps