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]

preguntada hace 2 meses138 visualizaciones
1 Respuesta
2
Respuesta aceptada

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
EXPERTO
Steve_M
respondido hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses
  • 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).

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas