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

posta 2 anni fa2309 visualizzazioni
1 Risposta
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
con risposta 2 anni fa
profile pictureAWS
ESPERTO
Toni_S
verificato 2 anni fa
  • 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!!!

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande