AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon EC2 EC2Fleet OnDemandOptionsRequest

The OnDemandOptionsRequest property type specifies the allocation strategy of On-Demand Instances in an EC2 Fleet.

OnDemandOptionsRequest is a property of the AWS::EC2::EC2Fleet resource.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "AllocationStrategy" : String }

YAML

AllocationStrategy: String

Properties

AllocationStrategy

The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify lowest-price, EC2 Fleet uses price to determine the order, launching the lowest price first. If you specify prioritized, EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first. If you do not specify a value, EC2 Fleet defaults to lowest-price.

Required: No

Type: String

Update requires: No interruption

See Also

On this page: