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回答
2
承認された回答

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
エキスパート
Steve_M
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
  • 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).

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ