Spot instance lifecycle

Hi there, is there any kind of the lifecycle notification mechanism that can help to identify that the spot instance is going to be taken away so I will be ready to move to another one?

And one more thing - is there any graceful shutdown interval / timeout for such instances?
Was this page helpful?