AWS Security ChangesHomeSearch

AWS ec2 documentation change

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

File: ec2/latest/devguide/example_ec2_ModifyImageAttribute_section.md

Summary

Added PowerShell V5 examples for ModifyImageAttribute operation including AMI permission management

Security assessment

The change documents AMI access control management (public/private permissions), which is a security feature, but does not address specific vulnerabilities

Diff

diff --git a/ec2/latest/devguide/example_ec2_ModifyImageAttribute_section.md b/ec2/latest/devguide/example_ec2_ModifyImageAttribute_section.md
index 1cf4ed143..2a508e3ba 100644
--- a//ec2/latest/devguide/example_ec2_ModifyImageAttribute_section.md
+++ b//ec2/latest/devguide/example_ec2_ModifyImageAttribute_section.md
@@ -106,0 +107,38 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example updates the description for the specified AMI.**
+    
+    
+    Edit-EC2ImageAttribute -ImageId ami-12345678 -Description "New description"
+    
+
+**Example 2: This example makes the AMI public (for example, so any AWS account can use it).**
+    
+    
+    Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType add -UserGroup all
+    
+
+**Example 3: This example makes the AMI private (for example, so that only you as the owner can use it).**
+    
+    
+    Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType remove -UserGroup all
+    
+
+**Example 4: This example grants launch permission to the specified AWS account.**
+    
+    
+    Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType add -UserId 111122223333
+    
+
+**Example 5: This example removes launch permission from the specified AWS account.**
+    
+    
+    Edit-EC2ImageAttribute -ImageId ami-12345678 -Attribute launchPermission -OperationType remove -UserId 111122223333
+    
+
+  * For API details, see [ModifyImageAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+