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

Amazon EC2 EC2Fleet SpotOptionsRequest

The SpotOptionsRequest property type specifies the configuration of Spot Instances for an EC2 Fleet.

SpotOptionsRequest 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, "InstanceInterruptionBehavior" : String, "InstancePoolsToUseCount" : Integer }

Properties

AllocationStrategy

Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet request. The default is lowestPrice.

Required: No

Type: String

Update requires: No interruption

InstanceInterruptionBehavior

The behavior when a Spot Instance is interrupted. The default is terminate.

Required: No

Type: String

Update requires: No interruption

InstancePoolsToUseCount

The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot AllocationStrategy is set to lowest-price. EC2 Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

Required: No

Type: Integer

Update requires: No interruption

See Also

On this page: