ec2-fingerprint-key
SYNOPSIS
ec2-fingerprint-key KEYFILE
DESCRIPTION
Computes and displays the fingerprint for a private key produced by Amazon EC2. KEYFILE must be
the path to a file containing an unencrypted PEM encoded PKCS#8 private key.
This operation is performed entirely on the client-side. Network access is not required.
OUTPUT
A key fingerprint. This is formatted as a hash digest with each octet separated by a colon.
Errors are displayed on stderr.
EXAMPLE
$ ec2-fingerprint-key mykey.pem
1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f
SEE ALSO
ec2-create-keypair
ec2-describe-keypairs
Amazon EC2
Developer Guide
32
ec2-run-instances
SYNOPSIS
ec2-run-instances AMI [-n INSTANCE_COUNT] [-g GROUP [-g GROUP ...]] [-k KEY]
DESCRIPTION
Launches one or more instances of the specified AMI. An optional security group in which new
instances should be launched may be specified. If no group is specified instances are launched in the
default group. A keypair name may also be specified. If provided, the public key associated with this
keypair will be made available to the instances at boot time.
OUTPUT
A table containing the following information is returned:
Output type identifier ("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. This will in most cases be pending which indicates that the instance is being prepared
for launch.
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.
OPTIONS
Option Definition Required? Example
-n IN-
STANCE_COUNT
The number of instances to launch. If
not specified, a value of 1 will be as-
sumed. If it is not possible to launch at
least this many instances (due to a lack
of capacity or funds), no instances will
be launched. If specified as a range
(min-max) Amazon EC2 will try to
launch as many instances as possible,
up to max, but will launch no fewer
than min instances.
No -n 5
-g GROUP The security group(s) within which the
instance(s) should be run. This determ-
ines the ingress firewall rules that will
be applied to the instances. By default
instances will run in the user's default
group. If more than one group is spe-
cified, the security policy of the in-
stances will be the union of the secur-
ity policies of the specified groups.
No -g fooGroup
Amazon EC2
Developer Guide
33
Previous Page Next Page