Help us understand the problem. What is going on with this article?

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

題名通り

普段はリモートの環境や他拠点サーバから接続しているので
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アドレスを登録しましょう。

imaiworks
PHP好き好き大好き!やっぱ好き!
ayudante
いつもユーザー中心で技術者とコンサルタントがとことん考え抜く それがアユダンテです
https://ayudante.jp/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした