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 use modify cluster or modify instance to modify the Amazon VPC of an Aurora cluster or instance. However, you can use one of the following methods to change the VPC of an Aurora cluster:

  • 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 a volume for an Amazon 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 set up binary logging replication, then follow these steps to change the VPC of an Aurora cluster:

  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 a DB cluster in a VPC

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

AWS OFFICIAL
AWS OFFICIALUpdated 4 months ago