How do I move my Amazon Redshift provisioned cluster from one VPC to another VPC?

3 minute read
0

I want to move an Amazon Redshift cluster from one Amazon Virtual Private Cloud (Amazon VPC) to another VPC.

Short description

To move an Amazon Redshift provisioned cluster from one VPC to another:

  1. Confirm the AWS Identity and Access Management (IAM) roles and configuration details of the source cluster.
  2. Create a cluster subnet group.
  3. Take a snapshot of the source cluster.
  4. Restore the cluster to the new cluster subnet group.
  5. Associate the IAM roles.

Resolution

Note: Be sure to stop writes to the original cluster during the migration. Otherwise, some data might not be backed up to the new cluster.

Confirm the IAM roles

  1. Open the Amazon Redshift console, and then choose CLUSTERS on the navigation pane.
  2. Select the Amazon Redshift cluster that you want to move.
  3. At the top of the page, choose the Actions dropdown list, and then choose Manage IAM roles.
  4. Note the IAM roles that are associated with your cluster. You'll associate these roles with the new cluster later.

Create a cluster subnet group

Create a cluster subnet group. For VPC, choose the ID of the VPC that you want to migrate the cluster to, and then add any associated subnets.

Take a manual snapshot of the source cluster

Create a manual snapshot. For Cluster identifier, choose the cluster that you want to migrate.

Restore the cluster to the new cluster subnet group

  1. Choose the snapshot that you created, choose Restore from snapshot, and then choose Restore to provisioned cluster.
  2. Configure the properties of the new cluster. By default, Amazon Redshift automatically selects the same properties as the source cluster. Be sure that these properties are different from the source cluster:
    Cluster identifier Virtual private cloud (VPC): the VPC that you want to migrate the cluster to
  3. Choose Restore.

Associate the IAM roles

  1. On the navigation pane, choose CLUSTERS, and then choose the new cluster.
  2. Choose the Actions drop-down list, and then choose Manage IAM roles.
  3. From Available IAM roles, choose the roles that are associated with the source cluster.
  4. Choose Add IAM role, and then choose Done.

After the snapshot is restored and the new cluster status changes to Available, follow these steps:

  1. Rename the old cluster (for example, "oldcluster-1").
  2. Rename the new cluster to the original cluster name (for example, "cluster-1").
  3. Resume write operations to the cluster from client applications.
  4. Delete the old cluster.

Related information

Managing clusters in a VPC

Why can't I access a VPC to launch my Amazon Redshift cluster?

How do I copy an Amazon Redshift provisioned cluster to a different AWS account?

AWS OFFICIAL
AWS OFFICIALUpdated 2 years ago