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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With