AWS code-library documentation change
Summary
Added PowerShell V5 examples for DescribeKeyPairs API including specific key pair retrieval
Security assessment
The change documents how to retrieve SSH key pair information, which is a security-related feature. However, it simply demonstrates existing functionality rather than addressing a specific security vulnerability or incident.
Diff
diff --git a/code-library/latest/ug/ec2_example_ec2_DescribeKeyPairs_section.md b/code-library/latest/ug/ec2_example_ec2_DescribeKeyPairs_section.md index c5a83ee25..368f4742d 100644 --- a//code-library/latest/ug/ec2_example_ec2_DescribeKeyPairs_section.md +++ b//code-library/latest/ug/ec2_example_ec2_DescribeKeyPairs_section.md @@ -418,0 +419,27 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example describes the specified key pair.** + + + Get-EC2KeyPair -KeyName my-key-pair + + +**Output:** + + + KeyFingerprint KeyName + -------------- ------- + 1f:51:ae:28:bf:89:e9:d8:1f:25:5d:37:2d:7d:b8:ca:9f:f5:f1:6f my-key-pair + +**Example 2: This example describes all your key pairs.** + + + Get-EC2KeyPair + + + * For API details, see [DescribeKeyPairs](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +