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?

2 Answers
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
EXPERT
answered 6 months ago
  • 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.

answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions