Can not access RDS locally

0

I already have a RDS in my VPC which is accessible locally but when I add a new RDS in the same VPC using the same security group I am unable to access it. For reference I have set up EKS and the rds security groups allows remote access and cluster access. My NACLs allow all traffic for inbound as well as outbound. The private subnet is routed to nat and then to the public subnet which is connected to the internet gateway. The rds is also made publicly accessible.
Enter image description here

2 回答
0

Hello.

Is the subnet of the subnet group set in RDS a public subnet?
If it is a private subnet, you will not be able to access it locally even if you enable public access in RDS.
Also, it is not recommended for security reasons to make RDS publicly accessible, so please consider the connection method described in the document below.
https://aws.amazon.com/jp/blogs/mt/use-port-forwarding-in-aws-systems-manager-session-manager-to-connect-to-remote-hosts/

profile picture
专家
已回答 2 个月前
  • Hi, yes it is inside my private subnet and the other RDS which is accessible locally with the same vpc,subnet group and security group is also inside my private subnet but this is accessible locally as well

  • RDS which is accessible locally

    Does local access mean accessing directly from your home network? In that case, RDS should not be able to connect directly unless it is started in a public subnet.

0

It seems like you've configured your network settings properly, but there could still be a few reasons why you're unable to access the new RDS instance. Let's troubleshoot:

  • Ensure that the route table associated with the subnet routes traffic destined for the internet (0.0.0.0/0) to the NAT gateway
  • Check public accessibility in RDS as well as security group alignments.
已回答 2 个月前

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

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

回答问题的准则