Modify a Spot Fleet request
Important
Spot Fleet uses a legacy API with no planned investment. We recommend using EC2 Fleet or an Auto Scaling group instead. For more information, see Which is the best fleet method to use?.
You can modify an active Spot Fleet request to complete the following tasks:
-
Increase the total target capacity and On-Demand portion
-
Decrease the total target capacity and On-Demand portion
When you increase the total target capacity, the Spot Fleet launches additional Spot Instances according to the allocation strategy for its Spot Fleet request. When you increase the On-Demand portion, the Spot Fleet launches additional On-Demand Instances.
When you decrease the total target capacity, the Spot Fleet cancels any open requests that
exceed the new target capacity. You can request that the Spot Fleet terminate Spot Instances until the
size of the fleet reaches the new target capacity. If the allocation strategy is
diversified, the Spot Fleet terminates instances across the pools.
Alternatively, you can request that the Spot Fleet keep the fleet at its current size, but not
replace any Spot Instances that are interrupted or that you terminate manually.
Considerations
-
You can't modify a one-time Spot Fleet request. You can only modify a Spot Fleet request if you selected Maintain target capacity when you created the Spot Fleet request.
-
When a Spot Fleet terminates an instance because the target capacity was decreased, the instance receives a Spot Instance interruption notice.