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回答
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ