aws-ec2-instance-statuses
Describes the status of all running AWS EC2 instances.
aws-ec2-instance-statuses [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:DescribeInstanceStatus
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 |
instance_id | String | Instance ID | e.g. i-00123456789abcdef |
state_code | Integer | State code | e.g. 16 |
state_name | String | State name | e.g. running |
instance_status | String | Instance status | e.g. ok |
system_status | String | System status | e.g. ok |
events | List | Events | Elements with code, description, not_before, and not_after properties |
instance_status_details | List | Instance status details | Elements with detail_name, detail_status, and impaired_since properties |
system_status_details | List | 시스템 상태 상세 목록 | 각 배열 요소는 detail_name, detail_status, impaired_since 속성 포함 |