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 Resposta
2
Resposta aceita

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
ESPECIALISTA
Steve_M
respondido há 2 meses
profile picture
ESPECIALISTA
avaliado há 2 meses
profile picture
ESPECIALISTA
avaliado há 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).

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas