EC2 Get Unused Security Groups

Amazon Web Services (AWS)’s Elastic Compute Cloud (EC2) is a commercial web service that allows users to rent virtual computers. Using AWS EC2’s cloud infrastructure, you can build powerful servers in the cloud. This service completely eliminates the need to set up and invest in hardware, enabling you to deploy your apps quickly. With AWS EC2, you can set up servers, configure networking and security, and manage storage.

An instance is nothing but a virtual machine. AWS offers a variety of instance types, which are various combinations of CPU, storage, memory, networking capacity, and so on.  

You can create Security Groups that work as virtual firewall for the created instances. These groups control the traffic for the associated instances, according to the rules defined by you while setting up security groups. You can change this setting/rules at any time.

If you want to get the list of all the security groups that are created but not being used, you can do it easily by using this action. To do this, you first need to configure the action, and select the required AWS connection. Next, select the region in which you want to check if there exist any unused security groups. That’s it.


Once you have entered all the required details, click on ‘Done’ and run the workflow. This will return the list of security groups that are not being used currently.

  • output-arrow aws-128 EC2 Get Unused Security Groups
    • left-triangle unusedGroups array