How can I prevent my Amazon EBS volumes from deletion when I terminate Amazon EC2 instances?
2 minute read
0
When I terminate an Amazon Elastic Compute Cloud (Amazon EC2) instance, the Amazon Elastic Block Store (Amazon EBS) volume is deleted.
Resolution
When an instance terminates, the value of the DeleteOnTermination attribute for each attached EBS volume determines whether to preserve or delete the volume. By default, the DeleteOnTermination attribute is set to True for the root volume. It is set to False for all other volume types.
Note: You don't incur billing costs for changing these values. However, charges are still incurred for the resources on EBS volumes that you choose to preserve, according to EBS pricing.