ankit
ankit

Reputation: 1529

Unable to Connect to AWS RDS Postgres from local system

I have created an AWS RDS Instance with Postgres 10.6

I am trying to connect to it from my local system using below command:

psql --host=dev.xyz.ap-south-1.rds.amazonaws.com --port=5432 --user="postgres" --password --dbname=abc

The Inbound rules i have set are

Allow TCP traffic on 5432 from Anywhere.

Still I am getting below error:

psql: could not connect to server: Connection timed out
Is the server running on host "dev.xyz.ap-south-1.rds.amazonaws.com" (xxx.xxx.xxx.xxx) and accepting
TCP/IP connections on port 5432?

List of Subnets

Upvotes: 0

Views: 1112

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269091

If Publicly accessible = No, then you will not be able to access the RDS database from outside the VPC.

This is because the DNS Name of the database will not resolve to an IP address.

Upvotes: 1

Related Questions