amazon-ec2-spot-interrupter
amazon-ec2-spot-interrupter copied to clipboard
Transfer an OD instance to Spot to send an ITN
If a user is testing their application's spot handling on an OD instance, it would be useful to transfer the VM to a spot instance since FIS will only send an ITN to the Spot instance. We should explore hibernating and transferring the EBS volume to the same instance type but with a spot purchasing option.
$ ec2-spot-interrupter -i i-0123456789
⛔️ i-0123456789 is an on-demand instance
Would you like to hibernate and launch on a spot instance (y/n): y
Hibernating i-0123456789
Launching Spot instance i-9876543210
Sending Spot ITN