Reputation: 1134
I am creating ec2 Spot instances using the command aws ec2 run-instances. I can see that the instances are terminated and restarted by aws. How can i make sure that if the instance is terminated by aws it does not get restarted by aws (i wish them to stay terminated).
Upvotes: 1
Views: 111
Reputation: 269151
There are two options for SpotInstanceType
: one-time
and persistent
.
You should use one-time
, which means that the Spot Instance will not be restarted.
See: run-instances — AWS CLI Command Reference
Upvotes: 2