aws ec2 describe-instance-status
Describes the status of the specified instances or all of your instances. AWS CLI reference
1 example 7 options Its page in the AWS CLI reference
Examples
To describe the status of an instance
The following describe-instance-status example describes the current status of the specified instance.
aws ec2 describe-instance-status --instance-ids i-1234567890abcdef0Identify--instance-idsThe instance IDs.Its output
{
"InstanceStatuses": [
{
"InstanceId": "i-1234567890abcdef0",
"InstanceState": {
"Code": 16,
"Name": "running"
},
"AvailabilityZone": "us-west-2d",
"SystemStatus": {
"Status": "ok",
"Details": [
{
"Status": "passed",
"Name": "reachability"
}
]
},
"InstanceStatus": {
"Status": "ok",
"Details": [
{
"Status": "passed",
"Name": "reachability"
}
]
}
}
]
}For more information, see Monitor the status of your instances in the Amazon EC2 User Guide.
Options
--dry-runChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response.--filtersThe filters.--include-all-instancesWhen true, includes the health status for all instances.--include-managed-resourcesIndicates whether to include managed resources in the output.--instance-idsThe instance IDs.--max-resultsThe maximum number of items to return for this request.--next-tokenThe token returned from a previous paginated request.