Skip to content

Instantly share code, notes, and snippets.

@pravargauba pravargauba/spotinst
Created Apr 27, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.