Dieser Inhalt ist in der ausgewählten Sprache nicht verfügbar
Wir arbeiten ständig daran, Inhalte in der ausgewählten Sprache bereitzustellen. Vielen Dank für deine Geduld.
How can I prevent my Amazon EBS volumes from being deleted when I terminate Amazon EC2 instances?
Lesedauer: 2 Minute
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.
To preserve the root volume when an instance terminates, change the DeleteOnTermination attribute for the root volume to False.
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.