gruntwork-io / cloud-nuke

A tool for cleaning up your cloud accounts by nuking (deleting) all resources within it
https://gruntwork.io/
MIT License
2.81k stars 358 forks source link

Failure to Nuke Security Group Due to Dependency Issue #726

Closed james03160927 closed 5 months ago

james03160927 commented 5 months ago

Seeing a lot of dependency related issues when deleting security groups:

| sg-d31b20bb                                                                         | Security Group       | ❌ DependencyViolation: resource sg-d31b20b |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sg-0dd37131e8e96cf2b                                                                | Security Group       | ❌ DependencyViolation: resource sg-0dd3713 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sg-0208603ed9eb60fd2                                                                | Security Group       | ❌ DependencyViolation: resource sg-0208603 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- |
james03160927 commented 5 months ago

There seem to be dependencies between security groups. We should untangle dependencies in order to delete security groups. E.g., one of the security group is dependent on other security group for inbound rules

image

james03160927 commented 5 months ago

After removing security groups from other "inbound rules" I was able to delete the security groups.