CmdID

CmdID / aws / aws ec2

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

7 in the AWS CLI reference
--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.