Qaisar shows you how to
preserve EBS volumes
for terminated spot instances


My EBS volumes are deleted when I terminate my Amazon EC2 Spot instances. How can I configure my EC2 Spot instances so that EBS volumes are not deleted?

When EC2 Spot instances are terminated, all EBS volumes are deleted by default. To change the default settings, follow these instructions:

  1. From the AWS EC2 console, choose Spot Requests from the left navigation pane.
  2. Choose Request Spot Instances, choose an Availability Zone, and then choose Next.
  3. In EBS volumes, uncheck Delete, choose Review, and then choose Launch.
  4. You will receive a message "Success, spot request successfully created". Choose OK.

This should prevent EBS volumes from being deleted when EC2 Spot instances are terminated.

Note: You can also use the AWS Command Line Interface (CLI) to configure EBS volumes to persist on termination. For additional information, see Preserving Amazon EBS Volumes on Instance Termination.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2017-02-24