Suvendu shows you how to
move a Redshift cluster
from one VPC to another

Suvendu_BLR_0718

How can I change an Amazon Redshift cluster from one Amazon Virtual Private Cloud (Amazon VPC) to another VPC?

To host an Amazon Redshift cluster in a different VPC, create a cluster subnet group, create a snapshot of the original cluster, and then restore the snapshot in the new cluster subnet group.

To move an Amazon Redshift cluster from one VPC to another, follow these steps:

  1. Note the IAM roles and configuration details of the source cluster.
  2. Create a cluster subnet group.
  3. Create a cluster snapshot.
  4. Restore the cluster to the new cluster subnet group.
  5. Associate IAM roles.

Note: Before beginning, be sure to stop writes to the original cluster during the migration. Otherwise, you might need to write new data that was added to the old cluster during the restore to the new cluster.

Note the IAM roles and the configuration details

  1. Open the Amazon Redshift console, and then choose Clusters from the navigation pane.
  2. Select your Amazon Redshift cluster, and then choose Manage IAM Roles.
  3. Note all the IAM roles that are associated with your cluster, and then save the roles to be used in the new cluster.
  4. Choose the Details pane of your cluster, and then note the following configurations:
    - Node Type
    - VPC ID
    - VPC security groups
    - Cluster Parameter Group
    - Enhanced VPC Routing
    - Cluster Database Properties
    - Port
    - Publicly accessible

Create a cluster subnet group

  1. Open the Amazon Redshift console, and then choose Clusters from the navigation pane.
  2. Select your Amazon Redshift, and then choose the Cluster Properties view to see the details about the current VPC.
  3. Choose Security from the navigation pane, and then choose the Subnet Groups tab.
  4. Choose Create Cluster Subnet Group.
  5. Enter a Name and Description for the cluster subnet group.
  6. Select the VPC ID that you want to migrate the cluster to, and then add any associated subnets.
  7. Choose Create.

Create a cluster snapshot

  1. Open the Amazon Redshift console, and then choose Snapshots from the navigation pane.
  2. Choose Create Snapshot.
  3. Review the Cluster identifier, and then enter a name for the Snapshot identifier.
  4. Choose Create.

Restore the cluster to the new cluster subnet group

  1. Open the Amazon Redshift console, and then choose Snapshots from the navigation pane.
  2. Choose the snapshot that you created.
  3. Choose Actions, and then select Restore from snapshot.
  4. Configure the following properties:
    - Node Type
    - Cluster Identifier (Different than the source cluster)
    - Port
    - Cluster subnet group (the new subnet group that you created)
    - Publicly accessible
    - Enhanced VPC Routing
    - Cluster Parameter Group
    - VPC security groups (Choose new security group configuration for the new VPC)
  5. Choose Restore.

Associate IAM roles

  1. Open the Amazon Redshift console, and then choose Clusters from the navigation pane.
  2. Select the new cluster, and then choose Manage IAM Roles.
  3. From Available roles, choose the roles associated with the source cluster.
  4. Choose Apply changes.

After the snapshot is restored and the status is Available, you can stop and delete the old cluster. Then you can rename the new cluster to the original cluster name.


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2018-08-10