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 Antwort
2
Akzeptierte Antwort

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
EXPERTE
Steve_M
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
  • 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).

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen