Configure connectivity
Each database cluster has a managed security group. Client access requires an inbound rule for your source CIDR.
To open port 5432
- Open the cluster detail page and choose the attached security group.
- Choose Edit.
- Choose Add inbound rule.
- For the port, enter
5432. For the source, enter your CIDR (for example,203.0.113.10/32). - Choose Save.
- Wait until security group Status is Ready.
Note
Managed replication rules on port 5432 may appear disabled. Add a separate enabled rule for your client CIDR.
Connect
psql "host=YOUR-CLUSTER-rw.rdb.eu-central-1.yourdomain.cloud port=5432 user=postgres dbname=postgres"