AWS ec2: Reformat GetPasswordData CLI examples and add RDP links
Summary
Renames the two examples to 'Example 1/2', reflows the aws ec2 get-password-data commands with line continuations, collapses the multi-line PasswordData output into one line, and adds 'For more information' links to the Windows RDP connection topic.
Security assessment
The diff is purely editorial: example headings, command formatting, output wrapping, and cross-reference links. The password-data example itself is unchanged in substance and no security guidance, vulnerability, or credential-handling change is introduced.
Evidence
+For more information, see [Connect to your Windows instance using RDP](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connecting_to_windows_instance.html) in the _Amazon EC2 User Guide_.
Diff
diff --git a/ec2/latest/devguide/example_ec2_GetPasswordData_section.md b/ec2/latest/devguide/example_ec2_GetPasswordData_section.md index 422db19..338012d 100644 --- a//ec2/latest/devguide/example_ec2_GetPasswordData_section.md +++ b//ec2/latest/devguide/example_ec2_GetPasswordData_section.md @@ -17 +17 @@ CLI -**To get the encrypted password** +**Example 1: To get the encrypted password** @@ -19 +19 @@ CLI -This example gets the encrypted password. +The following `get-password-data` example gets the encrypted password. @@ -21 +20,0 @@ This example gets the encrypted password. -Command: @@ -23,2 +22,2 @@ Command: - - aws ec2 get-password-data --instance-id i-1234567890abcdef0 + aws ec2 get-password-data \ + --instance-id i-1234567890abcdef0 @@ -33,5 +32 @@ Output: - "PasswordData": "gSlJFq+VpcZXqy+iktxMF6NyxQ4qCrT4+gaOuNOenX1MmgXPTj7XEXAMPLE - UQ+YeFfb+L1U4C4AKv652Ux1iRB3CPTYP7WmU3TUnhsuBd+p6LVk7T2lKUml6OXbk6WPW1VYYm/TRPB1 - e1DQ7PY4an/DgZT4mwcpRFigzhniQgDDeO1InvSDcwoUTwNs0Y1S8ouri2W4n5GNlriM3Q0AnNVelVz/ - 53TkDtxbNoU606M1gK9zUWSxqEgwvbV2j8c5rP0WCuaMWSFl4ziDu4bd7q+4RSyi8NUsVWnKZ4aEZffu - DPGzKrF5yLlf3etP2L4ZR6CvG7K1hx7VKOQVN32Dajw==" + "PasswordData": "gSlJFq+VpcZXqy+iktxMF6NyxQ4qCrT4+gaOuNOenX1MmgXPTj7XEXAMPLEUQ+YeFfb+L1U4C4AKv652Ux1iRB3CPTYP7WmU3TUnhsuBd+p6LVk7T2lKUml6OXbk6WPW1VYYm/TRPB1e1DQ7PY4an/DgZT4mwcpRFigzhniQgDDeO1InvSDcwoUTwNs0Y1S8ouri2W4n5GNlriM3Q0AnNVelVz/53TkDtxbNoU606M1gK9zUWSxqEgwvbV2j8c5rP0WCuaMWSFl4ziDu4bd7q+4RSyi8NUsVWnKZ4aEZffuDPGzKrF5yLlf3etP2L4ZR6CvG7K1hx7VKOQVN32Dajw==" @@ -40 +35 @@ Output: -**To get the decrypted password** +For more information, see [Connect to your Windows instance using RDP](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connecting_to_windows_instance.html) in the _Amazon EC2 User Guide_. @@ -42 +37 @@ Output: -This example gets the decrypted password. +**Example 2: To get the decrypted password** @@ -44 +39 @@ This example gets the decrypted password. -Command: +The following `get-password-data` example gets the decrypted password. @@ -47 +42,3 @@ Command: - aws ec2 get-password-data --instance-id i-1234567890abcdef0 --priv-launch-key C:\Keys\MyKeyPair.pem + aws ec2 get-password-data \ + --instance-id i-1234567890abcdef0 \ + --priv-launch-key C:\Keys\MyKeyPair.pem @@ -58,0 +56,2 @@ Output: +For more information, see [Connect to your Windows instance using RDP](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connecting_to_windows_instance.html) in the _Amazon EC2 User Guide_. +