AWS RDS
Instructions for configuring PowerSync for an AWS RDS Postgres database.
Prerequisites
The instance must be publicly accessible using an IPv4 address.
Access may be restricted to specific IPs if required — see IP Filtering.
Enable Logical Replication
Set the rds.logical_replication
parameter to 1
in the parameter group for the instance.
Create a PowerSync Database User
Create a PowerSync user on Postgres:
For read-only access, only the SELECT
privilege is required — INSERT
, UPDATE
and DELETE
can be removed.
To restrict read access to specific tables, explicitly list allowed tables for both the SELECT
privilege, and for the publication (as well as for any other publications that may exist).
Create "powersync" Publication
Connect PowerSync to Your Database
In the PowerSync dashboard project tree, click on "Create new instance":
Give your instance a name, such as "AWS RDS Testing".
Under the "General" tab, you can change the default cloud region from US to EU or JP if desired (more cloud regions are available, contact us if you need a different region).
Under the "DB Connections" tab, click on the + icon.
Now we get the connection details from RDS:
On the RDS instance, copy the "Endpoint".
Paste the endpoint in PowerSync instance 'Host' field.
The Username and Password is the
powersync_role
created above.PowerSync has the AWS RDS CA certificate pre-configured —
verify-full
SSL mode can be used directly, without any additional configuration required.
Click "Test Connection" and fix any errors:
Click "Save".
PowerSync deploys and configures an isolated cloud environment for you, which will take a few minutes to complete.
Troubleshooting
If you get an error such as "IPs in this range are not supported", the instance is likely not configured to be publicly accessible. A DNS lookup on the host should give a public IP, and not for example 10.x.x.x or 172.31.x.x.
Last updated