Forrest logo
back to the aws tool

aws-ec2:tldr:d0541

aws-ec2: Display information about all instances.
$ aws ec2 describe-instances
try on your machine

The command "aws ec2 describe-instances" is used to obtain information about EC2 instances in your AWS account. It retrieves details such as the instance ID, instance type, availability zone, state, and other relevant information.

When you run this command, it queries the AWS EC2 service and provides you with a JSON-formatted response that includes all the information about your EC2 instances.

Example output:

{
    "Reservations": [
        {
            "Instances": [
                {
                    "InstanceId": "i-1234567890abcdef0",
                    "InstanceType": "t2.micro",
                    "AvailabilityZone": "us-west-2c",
                    "State": {
                        "Code": 16,
                        "Name": "running"
                    },
                    ...
                },
                ...
            ]
        }
    ]
}

In the output, you can see details like the instance ID (i-1234567890abcdef0), instance type (t2.micro), availability zone (us-west-2c), and the state (running) of the instance. This information can be valuable for various purposes, such as monitoring, troubleshooting, or automating AWS operations.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the aws tool