Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
Why does my Spot Instance terminate even though the maximum price is higher than the Spot price?
2 minute read
0
Amazon Elastic Compute Cloud (Amazon EC2) terminated my Spot Instance even though the maximum price that I set is higher than the Spot price.
Short description
Amazon EC2 might terminate your Spot Instance even if your maximum price is higher than the Spot price for the following reasons:
There's not enough capacity. Note: Amazon EC2 might reclaim your EC2 instance to repurpose capacity.
There are host maintenance or hardware decommission issues in your instance.
Amazon EC2 can't meet your Spot Instance constraints such as a launch group or Availability Zone.
A high maximum price doesn't guarantee Spot Instance availability. For more information, see Spot Instance interruptions.
Note: By default, Amazon EC2 terminates interrupted Spot Instances. However, you can change the default behavior when you create a Spot Instance to hibernate or stop the instance instead.
Resolution
To identify why Amazon EC2 interrupted your Spot Instance, complete the following steps: