How do I use AWS DMS to migrate PostgreSQL databases between Amazon RDS, Aurora, and on-premises environments?
3 minute read
0
I want to use AWS Database Migration Service (AWS DMS) to migrate PostgreSQL databases between Amazon Relational Database Service (Amazon RDS), Amazon Aurora, and on-premises environments.
Create your source and target endpoints. Note: For Amazon RDS or Aurora database (DB) instances, select the Amazon RDS for PostgreSQL or Aurora PostgreSQL-Compatible Edition database engine. For on-premises DB instances, configure the VPC endpoint with the IP address and DNS of the on-premise DB server and test the connection.
Create a migration task. Note: Before you perform the migration in your production environment, it's a best practice to test your migration in a test environment.
To monitor the migration progress, take one or more of the following actions:
Use Amazon CloudWatch to monitor the progress of your migration tasks.
Monitor table statistics to track the progress of your migration tasks.
Configure your AWS DMS task for specific migration scenarios
If you're migrating an RDS for PostgreSQL database to an Aurora PostgreSQL-Compatible database, then use AWS DMS to perform data transformations during the migration.
If you're migrating an on-premises PostgreSQL database to an Amazon RDS database or Aurora database, then take the following actions: