AWS Security ChangesHomeSearch

AWS ec2 documentation change

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

File: ec2/latest/devguide/example_ec2_CreateImage_section.md

Summary

Added PowerShell examples for AMI creation including EBS snapshot handling and no-reboot options

Security assessment

Focuses on image creation mechanics without security implications. The no-reboot warning relates to data integrity rather than security vulnerabilities.

Diff

diff --git a/ec2/latest/devguide/example_ec2_CreateImage_section.md b/ec2/latest/devguide/example_ec2_CreateImage_section.md
index 0aa7ce0ae..bf92b5c78 100644
--- a//ec2/latest/devguide/example_ec2_CreateImage_section.md
+++ b//ec2/latest/devguide/example_ec2_CreateImage_section.md
@@ -111,0 +112,29 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates an AMI with the specified name and description, from the specified instance. Amazon EC2 attempts to cleanly shut down the instance before creating the image, and restarts the instance on completion.**
+    
+    
+    New-EC2Image -InstanceId i-12345678 -Name "my-web-server" -Description "My web server AMI"
+    
+
+**Example 2: This example creates an AMI with the specified name and description, from the specified instance. Amazon EC2 creates the image without shutting down and restarting the instance; therefore, file system integrity on the created image can't be guaranteed.**
+    
+    
+    New-EC2Image -InstanceId i-12345678 -Name "my-web-server" -Description "My web server AMI" -NoReboot $true
+    
+
+**Example 3: This example creates an AMI with three volumes. The first volume is based on an Amazon EBS snapshot. The second volume is an empty 100 GiB Amazon EBS volume. The third volume is an instance store volume. The syntax used by this example requires PowerShell version 3 or higher.**
+    
+    
+    $ebsBlock1 = @{SnapshotId="snap-1a2b3c4d"}
+    $ebsBlock2 = @{VolumeSize=100}
+    
+    New-EC2Image -InstanceId i-12345678 -Name "my-web-server" -Description "My web server AMI" -BlockDeviceMapping @( @{DeviceName="/dev/sdf";Ebs=$ebsBlock1}, @{DeviceName="/dev/sdg";Ebs=$ebsBlock2}, @{DeviceName="/dev/sdc";VirtualName="ephemeral0"})
+    
+
+  * For API details, see [CreateImage](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+