Not able to access database public

0

I wanted to access database from my local but I am getting connection timeout. I have enabled public access for the database and have added All traffic in my inbound rule for the security groups , I have also tried with public IP (from nslookup). The database is hosted in a VPC, not sure what is blocking the connection.

2개 답변
0

Hello.

Have you checked that there is a route to Internet Gateway in the route table of the subnet on which RDS is running?
Also, make sure that communication is not prevented by network ACLs.
https://repost.aws/knowledge-center/rds-connectivity-instance-subnet-vpc

profile picture
전문가
답변함 9달 전
0

Regardless of your database being related to work matters or pet projects, I would strongly recommend to put it in private subnet and access it via SSM: https://aws.amazon.com/blogs/database/securely-connect-to-an-amazon-rds-or-amazon-ec2-database-instance-remotely-with-your-preferred-gui/

profile picture
전문가
답변함 9달 전

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

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

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

관련 콘텐츠