Luis
Luis

Reputation: 625

AWS RDS MySQL migration from default VPC to custom VPC

I have an AWS RDS MySQL in one of the Public Subnets of one of the default VPCs. What would be the best and smooth procedure to migrate it to an RDS MySQL located in a new custom VPC in a private subnet? Would it be possible to create a VPC peering between both VPCs and then create an RDS Standby?

Thanks!

Upvotes: 0

Views: 329

Answers (2)

Monica
Monica

Reputation: 11

This is easier: https://aws.amazon.com/premiumsupport/knowledge-center/change-vpc-rds-db-instance/

You can go to Databases console and modify the instance's VPC in the Network & Connectivity section.

Upvotes: 0

Sudharsan Sivasankaran
Sudharsan Sivasankaran

Reputation: 5887

  1. Create a Snapshot
  2. Restore the database, select the custom VPC in the settings.
  3. Update the new endpoint in your applications.

(or)

You can modify the DB settings and apply it in the next maintenance window

https://aws.amazon.com/premiumsupport/knowledge-center/change-vpc-rds-db-instance/

Upvotes: 2

Related Questions