Spotinst supports importing any On-Demand instance from an AWS account to a stateful spot instance managed by Spotinst, as part of a Stateful Elastigroup. The Spot instance will have the same state as the original On-Demand instance, this includes the root and data volumes as well as the private IP of the orienting instance, depending on the configuration selected.
How is it done?
We create an image from the existing instance and use this image to launch a spot instance as the Elastigroup initialize. You can choose whether or not to use the same private IP as the existing instance in AWS holds.
Note: If you choose to use the same private IP, the instance will have to terminate and only then we will be able to launch the new Spot instance.
How to Import?
You can import via one of the following:
1. New Elastigroup Setup tab
While you create an Elastigroup, starting with the Setup tab as the first part of the Creation Wizard. Selecting to create a stateful group will prompt you to import an existing instance from your AWS account. Simply set the region and the instance ID and check if you want to use the same private IP.
2. Creation wizard "IMPORT"
Navigate to the Elastigroup screen and select to create a new Elastigroup via the Create button.
In the creation Wizard - skip the Setup Tab and move to the General tab:
Then select to import an existing stateful instance:
Selecting to create a stateful group in any of the above ways will prompt you to import an existing instance from your AWS account. Simply set the region and the instance ID and check if you want to use the same private IP.
Notice! If you choose to use the same private IP, you will also have to determine if the termination of the instance will be done automatically or not. If you don't check the Terminate instance automatically checkbox, you will have to approve instance termination upon group initialization. Note that we will not be able to launch the new instance if we don't have your approval of terminating the instance.
Note: When you choose to import an existing stateful instance, the capacity section under general tab and the stateful section under compute tab will be disabled and cannot be changed until the group launches successfully.
After hitting the create button, the group starts to initialize. You can follow the steps in the Console:
Important! If you chose to use the same private IP and didn't choose to automatically terminate the instance, you will have to hit the Terminate instance button: