I have an Amazon RDS Postgres DB and I created a "replicator" user and granted it the "replication" privilege.
db=> create role replicator login password 'something';
CREATE ROLE
db=> alter role replicator replication;
ALTER ROLE
db=>
However, when I try to run pg_basebackup from the target host to create the replica, I get a pg_hba.conf error:
# pg_basebackup -D /data/from-master -U replicator -h db-master.example.com -v
pg_basebackup: could not connect to server: FATAL: no pg_hba.conf entry for replication connection from host "10.1.20.19", user "replicator", SSL on
FATAL: no pg_hba.conf entry for replication connection from host "10.1.20.19", user "replicator", SSL off
The problem is that, this being RDS, I can't get to the pg_hba.conf at all. Any ideas?