LoginSignup
0
0

More than 3 years have passed since last update.

EC2からRDS Redshiftに接続するとき同一VPCならばセキュリティグループに登録するIPアドレスはEC2のプライベート IPで

Last updated at Posted at 2020-02-27

題名通り

普段はリモートの環境や他拠点サーバから接続しているので
RDS Redshiftにぶら下げたセキュリティグループにはその拠点のグローバルIPを登録していたが、
EC2で立ち上げたインスタンスからも登録するのはグローバルIPだろうと設定したがつながらず・・

PHP Warning:  pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection timed out
        Is the server running on host "xxxxxxxxxx.xxxxxxxxxx.ap-northeast-1.redshift.amazonaws.com" (nnn.nn.nn.nnn) and accepting
        TCP/IP connections on port 5439? in bbbbb.php on line 123

という感じでエラーになった場合、
EC2-->RDSの場合で同一VPCならば、セキュリティグループにはEC2のプライベートIPアドレスを登録しましょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0