CmdID

CmdID / aws / aws ec2

aws ec2 describe-fleets

Describes the specified EC2 Fleet or all of your EC2 Fleets. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To describe an EC2 Fleet

The following describe-fleets example describes the specified EC2 Fleet.

aws ec2 describe-fleets --fleet-ids fleet-12a34b55-67cd-8ef9-ba9b-9208dEXAMPLEIdentify
--fleet-idsThe IDs of the EC2 Fleets.
Its output, shortened
{
    "Fleets": [
        {
            "ActivityStatus": "pending_fulfillment",
            "CreateTime": "2020-09-01T18:26:05.000Z",
            "FleetId": "fleet-12a34b55-67cd-8ef9-ba9b-9208dEXAMPLE",
            "FleetState": "active",
            "ExcessCapacityTerminationPolicy": "termination",
            "FulfilledCapacity": 0.0,
            "FulfilledOnDemandCapacity": 0.0,
            "LaunchTemplateConfigs": [
                {
                    "LaunchTemplateSpecification": {
                        "LaunchTemplateId": "lt-0e632f2855a979cd5",
                        "Version": "1"
                    }
                }
            ],
            "TargetCapacitySpecification": {
                "TotalTargetCapacity": 2,
                "OnDemandTargetCapacity": 0,
                "SpotTargetCapacity": 2,
                "DefaultTargetCapacityType": "spot"
            },
            "TerminateInstancesWithExpiration": false,
            "Type": "maintain",
            "ReplaceUnhealthyInstances": false,
            "SpotOptions": {
                "AllocationStrategy": "lowestPrice",
                "InstanceInterruptionBehavior": "terminate",
… 8 more lines

For more information, see Work with EC2 Fleet in the Amazon EC2 User Guide.

Options

5 in the AWS CLI reference
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--filtersThe filters.
--fleet-idsThe IDs of the EC2 Fleets.
--max-resultsThe maximum number of items to return for this request.
--next-tokenThe token returned from a previous paginated request.