Reputation: 2370
What is the best practice to terminate a specific instance in a spot fleet without replacing it with a new one ? For Autoscaling group there is this command. Is there a similar option for spot fleets ?
Upvotes: 0
Views: 539
Reputation: 11
I think it's too late, but I found another solution for this question.
cancel_spot_instance_requests()
terminate_instances()
by instance idmodify_spot_fleet_request()
to reduce the target capacityIn this solution, we can terminate instance immediately without waiting.
Upvotes: 1
Reputation: 2370
I've implemented the following approach:
--excess-capacity-termination-policy noTermination
SpotFleetRequestState
changes from modifying
to active
Upvotes: 2