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 个月前373 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则