how to delete Security Groups referenced by other security groups, or are associated with instances or network interfaces?

0

I connected the security group to the EC2 instance. And deleted the instance. I cannot delete the security group because it is connected to the deleted e2c instance. How can I delete it?Enter image description here

已提問 2 年前檢視次數 2309 次
1 個回答
3

The Security group that you are trying to delete is referenced somewhere. Based on the screenshot it's mostly due to being referenced by another security group rather than a network interface. You can click on the text shown in the reason to identify what it is.

You can also use the filter Source/Destination (Group ID): <SG_to_be_deleted> to find if any other SG is referencing this SG that you want to delete.

--Syd

profile picture
Syd
已回答 2 年前
profile pictureAWS
專家
Toni_S
已審閱 2 年前
  • Thank you for your answer. As you said, the security group I was trying to delete was linked to the default security group. After removing all items in the inbound and outbound rules of the default security group, I was able to delete the security group!!!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南