Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS - moving RDS to VPC

We have couple of RDS that are not added under VPC, so we need to bring them under VPC. Please let me know the steps and downtime expected. Also let me know if there need to be any changes in the webservers, so that everything works fine after RDS is under VPC.

like image 339
Sherlock Avatar asked Apr 29 '14 16:04

Sherlock


People also ask

How do I transfer RDS to new VPC?

To move an Amazon RDS DB instance to a new VPC, you must change its subnet group. Before you move the RDS DB instance to a new network, configure the new VPC. This configuration includes the security group inbound rules, the subnet group, and the route tables.

Can RDS be in a VPC?

A VPC is a virtual network that is logically isolated from other virtual networks in the AWS Cloud. Amazon VPC makes it possible for you to launch AWS resources, such as an Amazon RDS DB instance or Amazon EC2 instance, into a VPC. The VPC can either be a default VPC that comes with your account or one that you create.

How do I transfer RDS from EC2 Classic to VPC?

So to migrate an RDS database from EC2-Classic to VPC you must set up a proxy server. The proxy server uses ClassicLink to link to the VPC with the Read Replica instance; port forwarding on the proxy server allows communication between the source RDS database in EC2-Classic and the target VPC RDS DB instance.

How do I move RDS from one subnet to another?

Sign in to the Amazon RDS console. From the navigation pane, choose Subnet groups, and then choose the subnet group that is associated with your DB instance. Choose Edit. From the Add subnets section, choose the Availability Zone and private subnets that you want to add.


1 Answers

You must have a VPC created before hand that have subnet in atleast two different regions.

After this go and create a "subnet group" for RDS and add two existing subnet in that.

Next take a snapshot of your RDS instance and start a new RDS instance from snapshot in VPC.

That should be it.

like image 53
Hitesh Avatar answered Oct 02 '22 04:10

Hitesh