I had an Amazon EC2 Spot instance running, but the instance was terminated, and I’m concerned I may have lost data. Are there ways to recover my instance, or the data stored on that instance?

Spot instances are best used for time-insensitive or non-production workflows and use cases. Because of the way the Spot bidding process works, Spot instances can be terminated at any time, and any data that isn’t backed up in some way can be lost. For a more detailed description of the reasons a Spot instance may be terminated, see How Spot Instances Work.

If you have a Spot instance that was recently terminated, and you’re concerned that data might have been lost, here are some places to check for your data:

  • Did you have an EBS volume attached to your instance? Check the Volumes pane of the Amazon EC2 console for any unattached volumes. If you attached a volume to your Spot instance before it was terminated, the data you’re looking for might be stored on the volume. You can attach the volume to another instance and attempt to recover data stored on the volume. For instructions for attaching a volume to a new instance, see Attaching an Amazon EBS Volume to an Instance.
  • Did you take regular snapshots of any volumes attached to your Spot instance? Check the Snapshots pane of the Amazon EC2 console for snapshots of volumes that were attached to your instance. These snapshots, normally used as backups for EBS volumes, might contain the data you’re looking for. For instructions for restoring volumes from snapshots, see Restoring an Amazon EBS Volume from a Snapshot.
  • Was the data being added or backed up to another source? Common output sources for workflows that run through Spot instances include Amazon S3, DynamoDB, and Amazon RDS. If you set your Spot instance to send output to one of these services, check those services for the data you’re looking for.

In the future, it’s best practice to prepare for a Spot instance’s termination ahead of time. For information about how to effectively prepare for a Spot instance’s eventual termination, see Spot Instance Interruptions.

Spot, terminate, gone, recover


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center.

Published: 2016-06-15