How can I change the VPC of an Amazon Aurora for MySQL or PostgreSQL cluster?

2 minute read
0

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

Short description

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).

Resolution

Create a clone in a different VPC

If you clone a database in an Aurora cluster, then 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.

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

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

Set up replication using binary logging using MySQL

If you use Amazon Aurora for MySQL and you set up replication using binary logging, then 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.

Related information

Working with an Amazon RDS DB Instance in a VPC

How do I change the VPC for an RDS DB instance?

AWS OFFICIAL
AWS OFFICIALUpdated 4 years ago