EC2 Retrieve Security Group

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 info about a particular security group, you can do so by using this action. To do this, you first need to configure the action, and select the required AWS connection. Select the region in which the security group resides. Next, you need to specify the ID and name of the security group that you wish to retrieve. You can also perform a dry run, which will check if you have the required permission to retrieve the security group.

ec2-retrieve-security-group

Once you have entered all the required details, click on ‘Done’ and run the workflow. This will retrieve the specified security group.

Output:
  • output-arrow aws-128 EC2 Retrieve Security Group
    • left-triangle SecurityGroups array
      • left-triangle OwnerId string
      • left-triangle GroupName string
      • left-triangle GroupId string
      • left-triangle VpcId string
      • left-triangle IpPermissions array
      • left-triangle Tags Tags