aws ec2 create-fleet
Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances. AWS CLI reference
15 options Its page in the AWS CLI reference
Options
--client-tokenUnique, case-sensitive identifier that you provide to ensure the idempotency of the request.--contextReserved.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--excess-capacity-termination-policyIndicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.--launch-template-configsThe configuration for the EC2 Fleet.--on-demand-optionsDescribes the configuration of On-Demand Instances in an EC2 Fleet.--replace-unhealthy-instancesIndicates whether EC2 Fleet should replace unhealthy Spot Instances.--reserved-capacity-optionsDefines EC2 Fleet preferences for utilizing reserved capacity when DefaultTargetCapacityType is set to reserved-capacity.--spot-optionsDescribes the configuration of Spot Instances in an EC2 Fleet.--tag-specificationsThe key-value pair for tagging the EC2 Fleet request on creation.--target-capacity-specificationThe number of units to request.--terminate-instances-with-expirationIndicates whether running instances should be terminated when the EC2 Fleet expires.--typeThe fleet type.--valid-fromThe start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).--valid-untilThe end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).