Unlocking the Power of Spot Fleet: A Deep Dive into Configuration, Instances, and Event History
Describing a Spot Fleet in Amazon EC2
Amazon EC2 provides a feature called Spot Fleet, which allows you to launch and manage a fleet of Spot Instances. You can describe the Spot Fleet configuration, instances in the Spot Fleet, and the event history of the Spot Fleet using the Amazon EC2 console or the AWS CLI.
Spot Fleet Description (Console)
-
Open the Amazon EC2 console.
-
In the navigation pane, select Spot Requests.
-
Select a Spot Fleet Request. The ID starts with sfr-. To see the configuration details, select Details.
-
To list Spot Instances for a Spot Fleet, select Instances.
-
To view records for a Spot Fleet, select History.
Describing a Spot Fleet (AWS CLI)
Use the following AWS CLI commands to describe a Spot Fleet request, instances, and event history.
Describe a Spot Fleet Request
Use the describe-spot-fleet-requests command to describe a Spot Fleet request.
aws ec2 describe-spot-fleet-requests
Describe Spot Instances for a Spot Fleet
Use the describe-spot-fleet-instances command to describe Spot Instances for a specified Spot Fleet.
aws ec2 describe-spot-fleet-instances
--spot-fleet-request-id sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE
Describe the Event History for a Spot Fleet Request
Use the describe-spot-fleet-request-history command to describe the event history for a specified Spot Fleet request.
aws ec2 describe-spot-fleet-request-history
--spot-fleet-request-id sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE
--start-time 2015-05-18T00:00:00Z
