Skip to content

Why did Amazon EC2 interrupt my Spot Instance?

2 minute read
0

I launched a Spot Instance but I can't find it in the Amazon Elastic Compute Cloud (Amazon EC2) console.

Resolution

Understand why Amazon EC2 interrupted your Spot Instance

Amazon EC2 can interrupt your Spot Instance for multiple reasons. You receive a Spot Instance interruption notice two minutes before Amazon EC2 interrupts the Spot Instance.

By default, Amazon EC2 terminates Spot Instances when they're interrupted. However, when you create the Spot instance, you can change the interruption behavior so that Amazon EC2 stops or hibernates interrupted Spot instances.

To determine why Amazon EC2 interrupted your Spot Instance, get the request status of the Spot Instance or find your interrupted Spot Instance. For a complete list of reason codes, see Spot request status codes.

Restore your Spot Instance

When Amazon EC2 terminates an instance, it also deletes the data on the instance store volumes. By default, Amazon EC2 also deletes the Amazon Elastic Block Store (Amazon EBS) root volume. You can't automatically recover a terminated instance.

To restore a Spot Instance, take one of the following actions:

Related information

Best practices for Amazon EC2 Spot

Why is my Spot Instance terminating even though the maximum price is higher than the Spot price?

My Spot Instance was terminated. Can I recover it?

AWS OFFICIALUpdated 2 months ago