Why can't I connect to my Amazon RDS database?

0

Error Message

I simply cannot figure out how to access my RDS database through pgAdmin4.

More info:

  1. The database is available;

  2. The database is publicly accessible;

  3. The database is part of a security group which allows all in-bound and out-bound traffic from anywhere (I know it's not good practice but it's only for the sake of making this work);

  4. The credentials that I'm using are correct (host name, port, username, password);

  5. It doesn't work to telnet to the database from the Windows CLI.

  6. The route table points to an internet gateway.

  7. It's associated with 3 subnets. All subnets have the following rules for both in-bound and out-bound: [100 All traffic All All 0.0.0.0/0 Allow] [* All traffic All All 0.0.0.0/0 Deny]

1 Answer
2
Accepted Answer

Probably a silly question, but the RDS instance has been provisioned with a public IP address, and it's the public IP address that you're trying to connect to?

  1. The route table points to an internet gateway.

  2. It's associated with 3 subnets.

The route table needs to be associated to all three subnets. Do all three subnets each have a route table with a route to the Internet Gateway?

profile picture
EXPERT
Steve_M
answered 2 months ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed 2 months ago
  • Thank you for the insight. The issue was that the subnets were connected to the internet. Only a EC2 machine was connected directly to the internet, and I thought that since the RDS database was connected to the EC2 machine, it made it accessible from the internet (in reality it didn't).

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions