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, complete the following steps:

  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, Amazon Redshift might not back up some data to the new cluster.

Confirm the IAM roles

Complete the following steps:

  1. Open the Amazon Redshift console.
  2. In the navigation pane, choose CLUSTERS.
  3. Select the Amazon Redshift cluster that you want to move.
  4. Choose the Actions dropdown list, and then choose Manage IAM roles.
  5. Note the IAM roles that are associated with your cluster.

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.

Create a manual snapshot of the source cluster

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

Restore the cluster to the new cluster subnet group

Complete the following steps:

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

Associate the IAM roles

Complete the following steps:

  1. Open the Amazon Redshift console.
  2. In the navigation pane, choose CLUSTERS, and then choose the new cluster.
  3. Choose the Actions dropdown list, and then choose Manage IAM roles.
  4. From Available IAM roles, choose the roles that are associated with the source cluster.
  5. Choose Add IAM role, and then choose Done.

After Amazon Redshift restores the snapshot and the new cluster status changes to Available, complete the following 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. Restart write operations to the cluster from client applications.
  4. Delete the old cluster.

Related information

Redshift resources 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 OFFICIALUpdated 4 months ago