AWS Security ChangesHomeSearch

AWS ec2 documentation change

Service: ec2 · 2025-06-28 · Documentation low

File: ec2/latest/devguide/example_ec2_DeleteKeyPair_section.md

Summary

Added PowerShell V5 example for key pair deletion

Security assessment

Shows standard key management operation without addressing security vulnerabilities or best practices

Diff

diff --git a/ec2/latest/devguide/example_ec2_DeleteKeyPair_section.md b/ec2/latest/devguide/example_ec2_DeleteKeyPair_section.md
index 79661afdc..8ec90803d 100644
--- a//ec2/latest/devguide/example_ec2_DeleteKeyPair_section.md
+++ b//ec2/latest/devguide/example_ec2_DeleteKeyPair_section.md
@@ -410,0 +411,22 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example deletes the specified key pair. You are prompted for confirmation before the operation proceeds, unless you also specify the Force parameter.**
+    
+    
+    Remove-EC2KeyPair -KeyName my-key-pair
+    
+
+**Output:**
+    
+    
+    Confirm
+    Are you sure you want to perform this action?
+    Performing operation "Remove-EC2KeyPair (DeleteKeyPair)" on Target "my-key-pair".
+    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
+
+  * For API details, see [DeleteKeyPair](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+