RDS connected resource to EC2 is deleted automatically after few days

0

I have RDS db that I connect to EC2 instance so that the EC2 instance will can connect to this DB. The problem is that after few days the connection is deleted automatically and I need to re-create it again and again. What can be the reason of this behavior?

已提问 6 个月前364 查看次数
2 回答
0

Hello.

What exactly happens when a connection disappears?
Does this mean that the security group settings are automatically changed?
Or does that mean RDS will disappear?

profile picture
专家
已回答 6 个月前
  • thank you for your reply.
    Are you following the conditions listed in this document? https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/ec2-rds-connect.html#ec2-rds-connect-viewing

    • The name of the security group associated with the compute resource matches the pattern ec2-rds-n (where n is a number).
    • The security group associated with the compute resource has an outbound rule with the port range set to the port that the RDS database uses.
    • The security group associated with the compute resource has an outbound rule with the source set to a security group associated with the RDS database.
    • The name of the security group associated with the RDS database matches the pattern rds-ec2-n (where n is a number).
    • The security group associated with the RDS database has an inbound rule with the port range set to the port that the RDS database uses.
    • The security group associated with the RDS database has an inbound rule with the source set to a security group associated with the compute resource.
0

Enter image description here When I enter again to AWS console, I see the RDS db but in "Connected compute resources" section there is not any item, the connected EC2 that I added to is disapear.

已回答 6 个月前

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

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

回答问题的准则