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.

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
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인