According to AWS documentation, the termination of a SPOT instance is notified 2 minutes in advance. I would like to make sure my service keeps running, by replacing a SPOT instance that is notified to be deleted, by an on-demand instance.
Are there existing ways (either built-in AWS configuration or external tools) to automatically replace an EC2 SPOT instance by an on-demand instance when the SPOT instance is marked for termination?