Get Hands-on with Amazon EKS - Workshop Event Series
Whether you're taking your first steps with Kubernetes or you're an experienced practitioner looking to sharpen your skills, our Amazon EKS workshop series delivers practical, real-world experience that moves you forward. Learn directly from AWS solutions architects and EKS specialists through hands-on sessions designed to build your confidence with Kubernetes. Register now and start building with Amazon EKS!
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
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.
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:
Set the DeleteOnTermination attribute for your Amazon EBS volumes to False to preserve the volume data when your instance terminates. You can use the preserved volumes to create an Amazon Machine Image (AMI) and launch a new instance.