Connection timeout error from Local to AWS Mysql & Postgres databases

0

I have been trying to connect to my database instances (Mysql & Postgres) from my local clients but have been running into connection timeout error. I followed all the steps provided on AWS website but same result. ANy help will be appreciated.

Bhargav
已提問 2 個月前檢視次數 375 次
1 個回答
0

Hello.

Public accessibility must be enabled in RDS for direct access from local clients.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/infrastructure-security.html#infrastructure-security.publicly-accessible

After enabling public accessibility you need to configure the RDS security group's inbound rules to allow your IP address.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.html

Also, make sure that the subnet specified in the RDS subnet group is a public subnet.
If this is a private subnet, you will not be able to connect to it even if public accessibility is enabled.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Subnets

Since it is not recommended to make RDS publicly accessible for security reasons, please also consider the connection method described in the following document.
https://aws.amazon.com/jp/blogs/mt/use-port-forwarding-in-aws-systems-manager-session-manager-to-connect-to-remote-hosts/

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南