Analogue's Blog

home

How to cleanly cancel spot requests on AWS

01 Feb 2012

How to cleanly cancel spot requests on AWS

Just found this explanation from an AWS employee about how to cleanly stop spot requests:
In case of one-time spot requests, termination of the instances will lead to the request moving to a closed state. So this will achieve what you are trying to do. On the other hand, canceling the request will not automatically terminate your instances.

The behavior is different for persistent requests where termination of an instance moves a request to an open state and it is again eligible for fulfillment, so cancellation there means that you don't require the request to spin more instances but at the same time you don't want to terminate the current instance either.
Just wanted to keep a note of it ;)

Comments