AWS Security ChangesHomeSearch

AWS AWSEC2 documentation change

Service: AWSEC2 · 2025-04-11 · Documentation low

File: AWSEC2/latest/UserGuide/preserving-volumes-on-termination.md

Summary

Clarified DeleteOnTermination attribute handling with updated console instructions and code examples

Security assessment

Changes focus on operational instructions for data persistence without security-specific content

Diff

diff --git a/AWSEC2/latest/UserGuide/preserving-volumes-on-termination.md b/AWSEC2/latest/UserGuide/preserving-volumes-on-termination.md
index 260bf8c00..7785fb660 100644
--- a//AWSEC2/latest/UserGuide/preserving-volumes-on-termination.md
+++ b//AWSEC2/latest/UserGuide/preserving-volumes-on-termination.md
@@ -42 +42 @@ To verify if an Amazon EBS volume will be deleted on instance termination, view
-You can change the `DeleteOnTermination` attribute when you launch an instance or for a running instance.
+You can change the `DeleteOnTermination` attribute of an EBS root volume when you launch an instance.
@@ -47 +47 @@ Console
-###### To change the root volume of an instance to persist at launch using the console
+###### To change the root volume of an instance to persist at launch
@@ -51 +51 @@ Console
-  2. Under **Storage (volumes)** , expand the information under the root volume.
+  2. On the **Configure storage** pane, choose **Advanced**. Under EBS volumes****, expand the information about the root volume.
@@ -53 +53 @@ Console
-  3. For **Delete on termination** , choose **No**
+  3. For **Delete on termination** , choose **No**.
@@ -67 +67 @@ Use the [run-instances](https://awscli.amazonaws.com/v2/documentation/api/latest
-For example, to persist a volume, add the `--block-device-mappings` option:
+Add the `--block-device-mappings` option:
@@ -91 +91 @@ Use the [New-EC2Instance](https://docs.aws.amazon.com/powershell/latest/referenc
-For example, to persist a volume, add the `-BlockDeviceMapping` option:
+Add the `-BlockDeviceMapping` option:
@@ -102 +102 @@ In `bdm`, specify the device name, for example `/dev/sda1` or `/dev/xvda`, and f
-    $bdm.DeviceName = "device_name"
+    $bdm.DeviceName = "/dev/sda1"
@@ -107 +107 @@ In `bdm`, specify the device name, for example `/dev/sda1` or `/dev/xvda`, and f
-You can change the root device volume of a running EBS-backed instance to persist.
+You can change the EBS root volume of a running instance to persist.
@@ -139,0 +140,14 @@ Use the [Edit-EC2InstanceAttribute](https://docs.aws.amazon.com/powershell/lates
+Add the `-BlockDeviceMapping` option:
+    
+    
+    -BlockDeviceMapping $bdm
+
+In `bdm`, specify the device name, for example `/dev/sda1` or `/dev/xvda`, and for `DeleteOnTermination`, specify `false`.
+    
+    
+    $ebd = New-Object -TypeName Amazon.EC2.Model.EbsBlockDevice
+    $ebd.DeleteOnTermination = false
+    $bdm = New-Object -TypeName Amazon.EC2.Model.BlockDeviceMapping
+    $bdm.DeviceName = "/dev/sda1"
+    $bdm.Ebs = $ebd
+