By default, the root device volume for an AMI backed by
Amazon EBS is deleted when the instance terminates. To change the default
behavior, set the
DeleteOnTermination
flag to false
in the
instance's block device mapping.AWS Management Console
To change the root device volume to persist when you launch an instance
- Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
- From the Amazon EC2 console dashboard, click Launch Instance.
- On the Choose an Amazon Machine Image (AMI) page, choose the AMI to use and click Select.
- Follow the wizard to complete the Choose an Instance Type and Configure Instance Details pages.
- On the Add Storage page, deselect the Delete On Termination check box for the Root volume.
- Complete the remaining wizard pages, and then click Launch.
True
. If you change the default behavior, Delete on
termination is False
.
Comments