aws-ec2-subnets
Describes one or more of your AWS EC2 subnets.
aws-ec2-subnets [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:DescribeSubnets
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 |
| az | String | Availability Zone | e.g. ap-northeast-2a |
| subnet_id | String | Subnet ID | |
| vpc_id | String | VPC ID | |
| default_az | Bool | Default AZ | |
| cidr_block | String | CIDR block | e.g. 172.31.0.0/20 |
| state | String | State | e.g. available, pending |
| available_ip_count | Integer | Available IP count | e.g. 4087 |
| owner_id | String | Owner ID | |
| assign_ipv6_on_creation | Bool | Assign IPv6 on creation | |
| map_public_ip_on_launch | Bool | Map public IP on launch | |
| subnet_arn | String | Subnet ARN | |
| ipv6_cidr_block_associations | List | IPv6 CIDR block associations | Elements with assoc_id, ipv6_cidr_block, state, and state_msg properties. |
| tags | List | Tags | Elements with key and value properties. |