Skip to content

Connect to AWS RDS for PostgreSQL from Mac

Use the RDS instance endpoint with a PostgreSQL database account. Your AWS account login is separate from the database login.

You need an available RDS for PostgreSQL instance and a network route from your Mac. For public access, the instance’s security group must permit your source address on the database port. A private instance needs an approved private route, such as a VPN or bastion host.

Obtain the instance endpoint, port, database name, and database user from your RDS configuration. Keep the endpoint’s DNS name for certificate hostname checks. Follow AWS’s PostgreSQL connection guide for the current console instructions.

Connect to AWS RDS for PostgreSQL from Mac

Section titled “Connect to AWS RDS for PostgreSQL from Mac”
  1. Create a PostgreSQL connection using connection basics.
  2. Enter the instance endpoint in Host and its database port in Port.
  3. Enter the database name and database credentials.
  4. Configure the certificate settings described below.
  5. Click Test.
  6. Click Save & Connect after a successful test.

Use Verify Full with the instance DNS endpoint and the applicable RDS CA bundle selected in Root CA. See AWS’s TLS guidance for current certificates and SSL/TLS for TableAI’s file selectors. For a bastion connection, configure an SSH tunnel to a host that can reach RDS.

timeout expired
password authentication failed for user

For a timeout, check the instance state, security group, source address, and public or private route. For rejected credentials, follow 28P01. Use TLS certificate errors for certificate failures and connection failed for network checks.

Write and run SQL after connecting. For a cluster endpoint, see Aurora PostgreSQL. Return to the PostgreSQL overview.