How can I change the Amazon Virtual Private Cloud (Amazon VPC) that is associated with an Amazon Aurora cluster?

You can't modify the VPC of an Aurora cluster or instance. However, you can change the VPC of an Aurora cluster by using one of the following methods:

  • Create a clone in a different VPC.
  • Take a snapshot and then restore the snapshot in a different VPC.
  • Set up replication using binary logging. (MySQL only)

Create a clone in a different VPC

If you clone a database in an Aurora cluster, you can change the VPC of the clone. However, the subnets in the VPC must map to the same set of Availability Zones. For more information, see Cloning Databases in an Aurora DB Cluster.

Note: This method results in downtime for the duration of the operation.

Take a snapshot and then restore the snapshot in a different VPC

If you create a snapshot of an Aurora instance or cluster, you can restore the snapshot to the new VPC. For more information, see Restoring from a DB Cluster Snapshot.

Note: This method results in downtime for the duration of the operation.

Set up replication using binary logging using MySQL

If you use Amazon Aurora for MySQL and you set up replication using binary logging, you can change the VPC of an Aurora cluster with minimal downtime.

  1. Create a new Aurora cluster in the target VPC.
  2. Set up manual MySQL replication between the two Aurora clusters.
  3. Promote the replica to be a standalone cluster.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2019-02-14

Updated: 2019-03-24