AWS

Download 186
Last updated Feb 21, 2024

aws-ec2-security-groups

Describes all AWS EC2 security groups.

aws-ec2-security-groups [profile=PROFILE] [region=REGION]
profile=PROFILE
The identifier of AWS connect profile
region=REGION
AWS region

AWS IAM Policy

To use this command, you must allow the below permissions in your AWS IAM policy:

  • ec2:DescribeSecurityGroups

Output Fields

FieldTypeNameDescription
aws_profileStringConnect profileThe identifier of AWS connect profile
regionStringRegione.g. ap-northeast-2
group_idStringSecurity group ID
group_nameStringSecurity group name
vpc_idStringVPC ID
owner_idStringOwner ID
descriptionStringDescription
ingressListIngressElements with protocol, ipv4_ranges, ipv6_ranges, prefixes, from_port and to_port properties.
egressListEgressElements with protocol, ipv4_ranges, ipv6_ranges, prefixes, from_port and to_port properties.
tagsListTagsElements with key and value properties.