前提・実現したいこと
aws rds postgresqlで環境を作りpostgresqlに接続したいのですが、接続できません。
接続の方法はpgadminなどのクライアントアプリかpsqlコマンドとかで接続できればOKです。
pcはmacです。
前提として
環境作成。上から順に
vpc: IPv4 CIDR ブロック="10.0.0.0/16"
vpc: dnsホスト名 有効
subnet1: IPv4 CIDR ブロック="10.0.1.0/24"
subnet2: IPv4 CIDR ブロック="10.0.2.0/24"
internet gateway作成
internet gatewayをvpcにattach
db-subnet-group作成(上のサブネット二つ)
postgresql作成
version:11.5
無料枠
上記vpc
上記db-subnet-group
パプリックアクセス可能
新規セキュリティグループ作成
inbound
TCP
port:5432
source:自分のIP/32
outbound
All
All
All
0.0.0.0/0
で、後はそのままで作成しました。
試したこと
上記環境を作成した上で、
pgadminで接続,psqlコマンドで接続。を試しました。
###エラーメッセージ
could not connect to server: Operation timed out Is the server running on host "yyyyyyyy" (xx.xx.xx.xx) and accepting TCP/IP connections on port 5432?

回答1件
あなたの回答
tips
プレビュー