ec2-get-password
Syntax
ec2-get-password
instanceId
-k windows-keypair
Description
Retrieves and decrypts the administrator password for the instances running Windows.
You must specify the key pair used to launch the instance.
Note | |
---|---|
The Windows password is only generated the first time an AMI is launched. It is not generated for rebundled AMIs or after the password is changed on an instance. The password is encrypted using the key pair that you provided and stored within the <password> tags of the console output. There is no SOAP or Query version of the |
Options
Option | Description | Required |
---|---|---|
| The ID of the instance. Example: | Yes |
| The file that contains the private key used to launch the instance. Example: | Yes |
Output
Amazon EC2 returns a table that contains the following information:
The Windows administrator password
Amazon EC2 displays errors on stderr
.
Example
This example returns the administrator password for the i-2574e22a
instance.
PROMPT>
ec2-get-password i-2574e22a -k windows-keypair
q96A40B9w