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
Field | Type | Name | Description |
---|---|---|---|
aws_profile | String | Connect profile | The identifier of AWS connect profile |
region | String | Region | e.g. ap-northeast-2 |
group_id | String | Security group ID | |
group_name | String | Security group name | |
vpc_id | String | VPC ID | |
owner_id | String | Owner ID | |
description | String | Description | |
ingress | List | Ingress | Elements with protocol, ipv4_ranges, ipv6_ranges, prefixes, from_port and to_port properties. |
egress | List | Egress | Elements with protocol, ipv4_ranges, ipv6_ranges, prefixes, from_port and to_port properties. |
tags | List | Tags | Elements with key and value properties. |