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

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

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

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

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

関連するコンテンツ