Skip to content

Instantly share code, notes, and snippets.

@pravargauba
Created April 27, 2019 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pravargauba/d1e0b324a9a8cdc3390c2791d480bcf3 to your computer and use it in GitHub Desktop.
Save pravargauba/d1e0b324a9a8cdc3390c2791d480bcf3 to your computer and use it in GitHub Desktop.
curl -X POST \
'https://api.spotinst.io/aws/ec2/statefulMigrationGroup?accountId={act-1234xyz}’ \
-H 'Authorization: Bearer <authorization_token>’ \
-H 'Content-Type: application/json' \
-H 'Postman-Token: <postman_token>' \
-H 'cache-control: no-cache' \
-d '{
"statefulMigrationGroup": {
"shouldKeepPrivateIp": true,
"originalInstanceId": "'"$instance_id"'",
"name": "'"$instance_name"'",
"product": "Linux/UNIX",
"spotInstanceTypes": [
"t3.small",
"t3.medium"
],
"region": “<region_name>”
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment