Home icon

Migrate Amazon Aurora PostgreSQL across major versions with active Debezium CDC connectors using native logical replication

Database Blog



This article demonstrates how to migrate Amazon Aurora PostgreSQL across major versions while maintaining active Debezium CDC connectors using native logical replication to avoid full re-snapshots.

  • Use PostgreSQL native logical replication to bridge source and target clusters during major version upgrades
  • Execute a brief cutover sequence: disable subscription, synchronize sequences, create Debezium slot on target, redirect connector
  • Keep the same topic.prefix so Kafka consumers continue reading from unchanged topics with minimal pause
  • Set snapshot.mode=never to skip initial snapshot and resume from current LSN without backlog
  • Monitor flush_lag and WAL growth post-cutover; connector can report RUNNING while silently accumulating WAL
  • Handle failure scenarios: Aurora failover, connector stalls, large messages, DDL changes, and long-running transactions
  • Database-side cutover completed in ~2 seconds in testing; total consumer pause depends on connector startup time
  • Requires low-latency connectivity between clusters; same VPC/AZ recommended, cross-AZ viable, cross-Region not recommended

This pattern enables zero-downtime major version upgrades for Aurora PostgreSQL with active CDC pipelines by using logical replication as a bridge, eliminating the need for full Debezium connector re-snapshots that can take hours per database.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

May 12
2026
Migrating Amazon RDS for PostgreSQL to Amazon Aurora using seeded logical replication
Jul 30
2026
Modernize SQL Server databases to Aurora PostgreSQL using AWS Transform
Jun 10
2026
How to migrate from Oracle to Amazon Aurora PostgreSQL using AWS CloudFormation (Part 1)
Aug 7
2026
Migrating and Modernizing Oracle Databases to PostgreSQL on AWS – Part 1: Discovery

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.