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:

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