Skip to content

Recommended process to migrate an existing rds postgres db to aurora dsql

0

Hello,

Now that Aurora DSQL has gone GA, I still don't see any documentation or guides for the recommended way to migrate to the service from a regular or aurora postgres instance or cluster on RDS.

Is it correct to assume the only option currently is to take the old db offline, run a pg_dump and pg_restore, then connect the application to the new DSQL instance?

Are there any plans for any of the typical patterns seen within RDS for migrations similar to this (ie DMS, snapshot/convert/restore, aurora read replica) to be replicated for getting from RDS -> DSQL?

Thank you.

asked a year ago834 views

1 Answer
1

Based on the available information, there isn't specific documentation about migrating directly to Aurora DSQL from RDS PostgreSQL or Aurora PostgreSQL. However, I can outline the general migration approaches that are available for PostgreSQL migrations to Aurora PostgreSQL, which may be applicable:

For homogeneous PostgreSQL migrations, you typically have three main approaches:

  1. Using native PostgreSQL tools like pg_dump and pg_restore for full load migrations. This would involve taking your database offline, as you suggested.

  2. Using AWS Database Migration Service (AWS DMS) for both full load and ongoing replication, which can help minimize downtime.

  3. Using a hybrid approach that combines native tools for full load and AWS DMS for ongoing replication.

For migrating from RDS PostgreSQL to Aurora PostgreSQL specifically, you would normally have these options:

  • Migrating using an RDS snapshot
  • Creating an Aurora read replica of your RDS PostgreSQL instance
  • Using AWS DMS
  • Importing data from Amazon S3

Since Aurora DSQL is relatively new, it's possible that not all these migration paths are currently supported. Without specific documentation for Aurora DSQL migrations, using pg_dump and pg_restore might indeed be the most reliable approach currently available, though it would require downtime.

I would recommend contacting AWS Support for the most up-to-date guidance on Aurora DSQL migration options and any roadmap for additional migration methods that might be coming soon.
Sources
Planning your database migration process - Migrating Your Databases to Amazon Aurora
Migrating PostgreSQL Databases to Amazon RDS for PostgreSQL or Amazon Aurora PostgreSQL - Database Migration Guide
Migrating data to Amazon Aurora with PostgreSQL compatibility - Amazon Aurora
Migrate or upgrade your like-to-like databases using AWS DMS homogeneous migration | AWS Database Blog

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.