Option Definition Required? Example
-k KEY The keypair to make available to these
instances at boot time.
No -k fooKeyPair
EXAMPLE
$ ec2-run-instances ami-6ba54002 -n 5
INSTANCE i-3ea74257 ami-6ba54002 pending
INSTANCE i-31a74258 ami-6ba54002 pending
INSTANCE i-31a74259 ami-6ba54002 pending
INSTANCE i-31a7425a ami-6ba54002 pending
INSTANCE i-31a7425b ami-6ba54002 pending
INSTANCE i-31a7425c ami-6ba54002 pending
SEE ALSO
RunInstances
ec2-terminate-instances
ec2-describe-instances
ec2-add-keypair
Amazon EC2
Developer Guide
34
ec2-describe-instances
SYNOPSIS
ec2-describe-instances [INSTANCEID ...]
DESCRIPTION
Describes the current state of each instance indicated by the respective INTANCEID specified on the
command line. If no instances are explicitly listed then all instances owned by the current user are
included in the output.
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.
DNS name associated with the instance (only present for instances in the running state).
Instance state.
Key name. If a key was associated with the instance at launch it's name will be displayed in this
column.
Errors are displayed on stderr.
EXAMPLE
$ ec2-describe-instances
RESERVATION r-15a4417c 495219933132
INSTANCE i-3ea74257 ami-6ba54002 domU-
12-31-33-00-00-01.dc3.compute.amazonaws.com running
INSTANCE i-31a74258 ami-6ba54002 domU-
12-31-33-00-00-02.dc3.compute.amazonaws.com running
SEE ALSO
DescribeInstances
ec2-run-instances
ec2-terminate-instances
Amazon EC2
Developer Guide
35
Previous Page Next Page