Help Center> Relational Database Service> FAQs> Network Security> Why Cannot the Associated Security Group Be Deleted Immediately After My DB Instance Is Deleted?
Updated on 2024-05-13 GMT+08:00

Why Cannot the Associated Security Group Be Deleted Immediately After My DB Instance Is Deleted?

When creating a DB instance, you must select a security group. If you do not select or create a security group, RDS allocates a security group to you by default.

After a DB instance is deleted, it is moved to the recycle bin and retained for seven days by default. To modify the retention period, configure a recycling policy.

The deleted instance is not removed from the security group immediately until the instance is deleted from the recycle bin. Before deleting a security group, ensure that the security group is not associated with any instance. For details about how to query instances associated with a security group, see How Do I Know the Instances Associated with a Security Group?

Network Security FAQs

more