ec2-describe-instances
ec2-describe-instances [INSTANCEID ...]
Describes the current state of each instance indicated by the respective INSTANCEID specified on the command line. If no instances are explicitly listed then all instances owned by the current user are included in the output.
A table containing the following information is returned:
-
Output type identifier ("RESERVATION", "INSTANCE")
-
Instance ID which uniquely identifies each running instance.
-
AMI ID of the image the instance is based on.
-
Public DNS name associated with the instance. Only present for instances in the
running
state. -
Private DNS name associated with the instance. Only present for instances in the
running
state launched with public addressing type. -
Instance state.
-
Key name. If a key was associated with the instance at launch it's name will be displayed in this column.
-
AMI launch index. See using instance data for more info.
-
Product codes attached to the instance.
Errors are displayed on stderr.
$
ec2-describe-instances
RESERVATION r-15a4417c 495219933132 INSTANCE i-3ea74257 ami-6ba54002 ec2-72-44-33-4.z-2.compute-1.amazonaws.com domU-12-31-33-00-00-01.z-2.compute-1.internal running 0 774F4FF8 INSTANCE i-31a74258 ami-6ba54002 ec2-72-44-34-23.z-2.compute-1.amazonaws.com domU-12-31-33-00-00-02.z-2.compute-1.internal running 1