Get the App
SLTechnology News&Howtos  ›  Servers  › 

There is no method to delete the security group after the ECS instance in the security group

Shulou Source: shulou.com Published: 2022-06-02 04:32:16 10月24日 Update

This article will explain in detail how to delete a security group after there are no ECS instances in the security group. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Delete a security group

If your business no longer needs one or more security groups, you can delete them. After the security group is deleted, all security group rules in the group are deleted at the same time.

prerequisite

The following conditions must be met for deleting a security group:

There are no ECS instances in the security group. For the operation of removing an ECS instance from a security group, see join and remove a security group.

Security groups have not been added to security group rules by other security groups. You can delete the security group directly by following the steps described in this article, and if the security group is authorized by another security group, you will see the error message shown in the following figure. Delete the appropriate authorization rules.

Operation steps

Follow these steps to delete the security group:

Log in to the ECS Management console.

In the left navigation bar, select Network and Security > Security Group.

Select the region.

Select one or more security groups, and at the bottom of the list, click Delete.

In the Delete Security Group dialog box, after confirming the information, click OK.

Related API

Delete security group: DeleteSecurityGroup

Query the authorization relationship between a security group and other security groups: DescribeSecurityGroupReferences

Remove the ECS instance from the security group: LeaveSecurityGroup

This is the end of the method of deleting a security group after there are no ECS instances in the security group. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.

Tags: Security examples steps rules methods information multiple more conditions articles selection good practical business between content premise at the same time region dialog box Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info OPPO Reno MySQL Microsoft MariaDB