DEV Community

Discussion on: How to move an Amazon RDS DB instance from an Amazon Virtual Private Cloud (Amazon VPC) to a new VPC

Collapse
 
ajitnk2006 profile image
Ajit

Other Option:
using AWS Database Migration Service (DMS) to replicate the database and performing a blue/green deployment would be a better option to minimize downtime compared to directly updating the DB subnet group. Here are a few reasons why:

DMS uses replication to keep the source and target databases synchronized. This allows setting up the target database in the new VPC ahead of time. Once replication catches up, you can switch over applications to the target database with minimal interruption.

With blue/green deployment, the target database instance is already available and ready to take traffic once applications are redirected. This reduces downtime.

DMS supports continuous replication which helps maintain a more up-to-date copy of the database in the new VPC. This keeps the recovery point objective (RPO) low

Let me know your views.

Collapse
 
awsmine profile image
Revathi Joshi AWS Community Builders

yes, that is also an option

Collapse
 
awsmine profile image
Revathi Joshi AWS Community Builders

I forgot - I have a post written on DMS Migration - Database Migration steps with the AWS CLI - 1 and 2. Just have to modify the VPC. Will try to do it when I have time.