简体   繁体   中英

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?

子网列表

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM