Home:ALL Converter>Unable to Connect to AWS RDS Postgres from local system

Unable to Connect to AWS RDS Postgres from local system

Ask Time:2020-02-05T19:33:05         Author:ankit

Json Formatter

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

Author:ankit,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/60074873/unable-to-connect-to-aws-rds-postgres-from-local-system
yy