Score:1

Possible to have AWS take a snapshot of a spot instance just prior to it's unplanned termination?

hu flag

I've setup a lifecycle manager to reboot a spot instance and create an AMI of the instance once every 24 hours.

It would be ideal if it could do the same just prior to an unplanned termination event.

Is this possible?

Score:1
id flag
MLu

Spot instances can be notified 2 minutes before termination - you can hook up your snapshotting script onto that event.

Alternatively you may choose to hibernate the instance instead of termination.

For more info about spot termination process check out the official docs on Spot instance interruptions

Hope that helps :)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.