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!!!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠