# Implementing PostgreSQL logical replication between Amazon RDS for PostgreSQL instances on separate AWS Outposts

DevFeed: [Implementing PostgreSQL logical replication between Amazon RDS for PostgreSQL instances on separate AWS Outposts](<https://devfeed.tech/articles/implementing-postgresql-logical-replication-between-amazon-rds-for-postgresql-instances-on-separate-aws-outposts-119354.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/compute/implementing-postgresql-logical-replication-between-amazon-rds-for-postgresql-instances-on-separate-aws-outposts/>)

Author: Belma Canik

Published: 2026-11-04T22:02:23Z

Content type: tutorial

Language: en

Sources: [AWS Compute Blog](<https://devfeed.tech/sources/aws-compute-blog.md>)

Topics: [RDS for PostgreSQL](<https://devfeed.tech/topics/rds-for-postgresql.md>), [AWS Outposts](<https://devfeed.tech/topics/aws-outposts.md>), [Amazon RDS](<https://devfeed.tech/topics/amazon-rds.md>), [Amazon VPC](<https://devfeed.tech/topics/amazon-vpc.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [all](<https://devfeed.tech/tags/all.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-rds](<https://devfeed.tech/tags/amazon-rds.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-outposts](<https://devfeed.tech/tags/aws-outposts.md>), [backups](<https://devfeed.tech/tags/backups.md>), [configure](<https://devfeed.tech/tags/configure.md>), [customer](<https://devfeed.tech/tags/customer.md>), [data](<https://devfeed.tech/tags/data.md>), [environment](<https://devfeed.tech/tags/environment.md>), [gateways](<https://devfeed.tech/tags/gateways.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [implementing](<https://devfeed.tech/tags/implementing.md>), [logical](<https://devfeed.tech/tags/logical.md>), [logical-replication](<https://devfeed.tech/tags/logical-replication.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [rds](<https://devfeed.tech/tags/rds.md>), [rds-for-postgresql](<https://devfeed.tech/tags/rds-for-postgresql.md>), [replication](<https://devfeed.tech/tags/replication.md>), [separate](<https://devfeed.tech/tags/separate.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

## AI overview

PostgreSQL logical replication between Amazon RDS instances on separate AWS Outposts can keep replication traffic on premises when CoIP addresses route through each rack's Local Gateway and the on-premises network. The setup requires CoIP to be explicitly enabled for each RDS instance, cross-Outpost and same-Outpost hairpin routes, PostgreSQL access on port 5432, and matching table schemas. Enable `rds.logical_replication` on the publisher; grant the replication user `SELECT` on published tables; and include `sslmode=require` in the subscription connection string because RDS PostgreSQL 15+ enforces SSL by default. Monitor replication and synchronization with PostgreSQL's replication status views. The approach provides a manually managed resilience option where regional backups are unacceptable or Multi-AZ prerequisites are unavailable. Multi-AZ offers automatic failover and synchronous replication, but requires Outposts in different Availability Zones and does not support local backups. Local RDS backups require S3 on Outposts capacity and are not supported for Multi-AZ deployments or read replicas.

## Source excerpt

Learn how to configure PostgreSQL logical replication between two Amazon RDS for PostgreSQL instances on separate AWS Outposts racks, keeping all replication traffic and backups within your on-premises environment by using Customer-owned IP addresses and Local Gateways, without any data traversing the AWS Region.