Migrate Data from Partitioned Tables in PostgreSQL Using AWS DMS
Migrate Data from Partitioned Tables in PostgreSQL Using AWS DMS

CLOUD LABS

Migrate Data from Partitioned Tables in PostgreSQL Using AWS DMS

In this Cloud Lab, you’ll learn how to migrate partitioned tables in PostgreSQL to another database, Amazon Redshift, using AWS Database Migration Service (DMS).

16 Tasks

beginner

2hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of the AWS DMS and its application in data migration between databases
An understanding of security groups and their application in managing inbound and outbound traffic
The ability to create a PostgreSQL database using the AWS RDS
Hand-on experience creating replication instances, endpoints, and replication tasks
Working knowledge of creating an Amazon Redshift cluster and an IAM role to define the permissions for the Redshift cluster

Technologies
AWS logoAWS
DMS
PostgreSQL
RDS
Redshift
EC2
VPC
Cloud Lab Overview

AWS Database Migration Service (DMS) facilitates data migration from different database sources to several targets within the AWS ecosystem. You can even use AWS DMS to migrate data from your on-premises database to the AWS cloud.

In this Cloud Lab, you’ll create partitioned tables in the source database, PostgreSQL, and migrate the data of these partitioned tables into a single table in Amazon Redshift. The migration will take place through AWS DMS. You’ll create an AWS DMS replication instance, source and target endpoints, and then configure a replication task. You’ll also see how change data capture (CDC) works in AWS DMS and understand its importance in scenarios where timely, accurate, and efficient handling of changes to data is necessary.

After completing this Cloud Lab, you’ll have enough knowledge and understanding to start working with AWS DMS and create replication tasks for your database migrations. Here’s the high-level architecture diagram of the infrastructure that you will create in this Cloud Lab:

Architecture diagram
Architecture diagram

Cloud Lab Tasks
1.Introduction
Getting Started
2.Prepare Source Database
Create an EC2 Security Group
Create an EC2 Instance
Create an RDS DB Instance
Connect with a Database Instance
Insert Data in the Database
3.Prepare Target Database
Create a Role for Amazon Redshift
Create an Amazon Redshift Cluster
4.Data Migration Task
Create a VPC Endpoint
Create a Replication Instance
Create the Source Endpoint
Create the Target Endpoint
Create a Data Migration Task
5.Migrate Data from Partitioned Tables in PostgreSQL to Redshift
Investigate Data Including Parent Table and Partitioned Tables
6.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Before you start...

Try these optional labs before starting this lab.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image