Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AWS by (12.9k points)

I'm try to find a way to determine orphan security groups so I can clean up and get rid of them. Does anyone know of a way to discover unused security groups.

Either through the console or with the command line tools will work (Running command line tools on linux and OSX machines).

1 Answer

0 votes
by (18.2k points)

You can delete your unused security groups using AWS GUI. This process of deleting unused security groups is more of a quick hack than an established convention, nonetheless, it works like a charm.

Deleting unused security groups using AWS GUI:

1. Go to EC2 console and navigate to security groups

2. Select all the security groups and click on actions

3. Click on delete security groups

A popup will appear displaying that you cannot delete security groups that are attached to instances, other security groups, or network interfaces, and it will list down all the security groups that you can delete (unused security groups)

4. Now you know all the unused security groups, so click on cancel and delete them separately.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...