ec2-get-password-data

Description

Retrieves the encrypted administrator password for the instances running Windows.

[Note]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.

Syntax

ec2-get-password-data instance_id [-r]

Options

NameDescriptionRequired

instance_id

The ID of the instance for which to get the password.

Type: String

Default: None

Example: i-10a64379

Yes

Output

The command returns a table that contains the following information:

  • The password data.

Amazon EC2 displays errors on stderr.

Examples

Example Request

This example returns the encrypted version of the administrator password for the i-2574e22a instance.

PROMPT> ec2-get-password-data i-2574e22a 
TGludXggdmVyc2lvbiAyLjYuMTYteGVuVSAoYnVpbGRlckBwYXRjaGJhdC5hbWF6b25zYSkgKGdj