Requirements
- Amazon RDS for PostgreSQL version 10 or above.
- Connect to the primary instance. Logical replication only works on the primary.
- Tables with a
PRIMARY KEY.
Enable logical replication
Create or open a DB parameter group
Create a DB parameter group that matches your PostgreSQL version (for example, 
postgres12). Skip this step if you already have one.
Set rds.logical_replication to 1
On the parameter group page, search for 
rds.logical_replication, select the row, click Edit parameters, and set the value to 1.
Grant the RDS replication role
After creating the sync user (see the common setup), grant the managed RDS replication role instead ofALTER ROLE ... WITH REPLICATION:
Next: common setup
Continue with the canonical PostgreSQL setup for the remaining steps — sync user privileges (USAGE, SELECT, REFERENCES), heartbeat table, publication, and replication slot:

