Migrate RedShift Clusters to Different Regions Effortlessly

Nagababu Medicharla
Searce
Published in
4 min readJul 3, 2023

--

Amazon Redshift, a powerful data warehousing service provided by Amazon Web Services (AWS), enables organisations to efficiently analyse large datasets and derive valuable insights. However, sometimes you may need to migrate your RedShift resources from one AWS region to another. This could be due to various reasons such as better availability, lower latency, or regulatory compliance requirements. In this blog post, we will explore the steps involved in migrating SageMaker resources from one region to another. We will cover everything from creating a backup of your RedShift resources to restoring them in the new region. So, if you are planning to migrate your RedShift resources, keep reading to learn how to do it successfully.

In order to migrate RedShift from one region to another region we can use either of the below approaches:

  1. Cross Region Snapshots
  2. Unload data to S3 , Generate the DDL of Schemas, Copy to load the data to Redshift in another region.

As part of this blog, we will discuss step by step process to migrate RedShift from one region to another region by using Cross Region Snapshots.

Architecture

Cross-Region snapshot feature of Amazon RedShift takes RedShift Snaphosts and copies the snapshot to the new region, after the snapshots are copied you can restore the latest snapshot to create a new Amazon Redshift cluster. Snapshots are incremental by nature and track changes to the cluster since the previous snapshot. The copy time is relative to the amount of data that has changed since the last snapshot.In order to minimise downtime we will automate the Snapshots and schedule the snapshots for every 1 or 2 hours depending on the downtime that can be afforded.

We will create a RedShift Cluster in Mumbai Region and migrate it to North Virginia Region. As per best practises I have created the redshift cluster in Private Subnets and have associated Redshift Interface endpoint. In one of my blogs I have walked through the step by step process to create an Interface endpoint.

I have added sample data to the RedShift Cluster.

Step 1: Create Snapshot schedule

Lets create a snapshot schedule every 1 hour and attach it to the RedShift Cluster. The minimum schedule interval is 60 Minutes.

Add Snapshot Schedule

Step 2: Enable Cross Region Snapshots:

Go to RedShift Cluster Actions and choose Configure Cross Region Snapshot.

Select the destination region and choose the automated and manual snapshot retention period.

The Cross Region Snapshots will be applicable to the Snaphots that are created after enabling the cross region feature and does not apply to existing snapshots. As we are copying snapshots between regions we will incur data transfer charges.

Step 3: Wait for Automated Snapshot to be taken in Source

The Automated Snapshot is taken and is available at the same time. If we see the Snapshots in the North Virginia Region, the snapshot is being copied.

Step 4: Restore the Snapshot in North Virginina Region

Once the cross region snapshot is available in the North Virginia region, restore the RedShift Cluster.

Once the RedShift Cluster is available, we can query for data. The username and password will be the same as in the source.

Conclusion:

We successfully migrated an existing RedShift Cluster from Mumbai region to North Virginia Region.

Happy Learning !!!!

Hope this was helpful

--

--

A Techie with 9*AWS, 2* GCP, 2*Kubernetes Certifications. I majorly work on Cloud Migration, Modernisation, Micro Services, DevOps. I help customers adopt cloud