I want to move my Amazon Relational Database Service (Amazon RDS) DB instance from an existing Amazon Virtual Private Cloud (Amazon VPC) to a new VPC.
Short description
To move an RDS DB instance to a new VPC, you must change its subnet group. First, configure the new VPC with the required security group inbound rules, subnet group, and route tables. Then, move the DB instance to the new network. When you change the VPC for a DB instance, the instance reboots.
Note: The DB instance isn't accessible during the move. Change the VPC during a planned change window that's outside of the Amazon RDS weekly maintenance window.
Before you change the VPC for a DB instance, review the following factors:
Resolution
To move your DB instance to a different VPC, complete the following steps:
- Open the Amazon RDS console.
- In the navigation pane, choose Subnet groups.
- Choose Create DB subnet group.
- For Subnet group details, enter the subnet name, description, and select your VPC ID.
- For Add subnets, select the subnets that you need for the DB instance.
- Choose Create.
- In the navigation pane, choose Databases.
- Select the DB instance, and then choose Modify.
- From the Connectivity section, select the Subnet group associated with the new VPC. Then, choose the appropriate Security group for that VPC.
- Choose Continue, and then choose Apply immediately.
Note: If you don't choose Apply immediately, then Amazon RDS modifies the VPC during the next maintenance window.
- Review the details on the Modify DB instance page, and then choose Modify DB instance.
Note: This task can take several minutes to complete.
- To confirm that the subnet changed, select the instance, and then navigate to the configuration details page. Check that the status is Complete and shows that the subnet group updated.
-or-
In the navigation pane, choose Events. Confirm that the process moved the DB instance to the target VPC.
Related information
Working with a DB instance in a VPC
Subnets for your VPC