Connect to Amazon Aurora PostgreSQL from Mac
Choose the Aurora cluster’s writer endpoint when you need to edit data or change structure. The endpoint choice determines which cluster instance receives your connection.
Before you start
Section titled “Before you start”You need an Aurora PostgreSQL cluster, a database account, and access to the cluster network. Use RDS network and certificate setup for the shared AWS requirements.
Find your connection details
Section titled “Find your connection details”| Endpoint | Use |
|---|---|
| Writer | Connect to the current primary instance for reads and writes. |
| Reader | Distribute read-only connections across readers when the cluster has replicas. |
Copy the endpoint and port for your intended task, plus the database name and user. See AWS’s cluster endpoint reference and reader endpoint reference.
Connect to Amazon Aurora PostgreSQL from Mac
Section titled “Connect to Amazon Aurora PostgreSQL from Mac”- Create a PostgreSQL connection using connection basics.
- Enter the chosen cluster endpoint and port.
- Enter the database credentials.
- Configure TLS using the AWS certificate instructions.
- Click Test.
- Click Save & Connect after a successful test.
Use a connection name that identifies the cluster and whether the endpoint is a writer or reader.
TLS and SSH
Section titled “TLS and SSH”Keep the cluster DNS endpoint as the database host for certificate verification. For a private cluster, use your organization’s network route or an SSH tunnel.
If it does not connect
Section titled “If it does not connect”timeout expiredcannot execute UPDATE in a read-only transactionFor a timeout, check the cluster state, endpoint, and security group. For rejected writes, confirm that you selected the writer endpoint and a role with write permission. See connection failed or edit rejected, depending on when the failure occurs.
Related
Section titled “Related”Continue with edit data safely, or return to the PostgreSQL overview.