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

Amazon EC2 LaunchTemplate SpotOptions

The SpotOptions property type specifies the options for Spot Instances in an Amazon EC2 launch template.

SpotOptions is a property of the Amazon EC2 LaunchTemplate InstanceMarketOptions property type.

Syntax

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

JSON

{ "SpotInstanceType" : String, "InstanceInterruptionBehavior" : String, "MaxPrice" : String }

Properties

InstanceInterruptionBehavior

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

Valid values include: hibernate, stop, and terminate.

Required: No

Type: String

Update requires: No interruption

MaxPrice

The maximum hourly price you're willing to pay for the Spot Instances.

Required: No

Type: String

Update requires: No interruption

SpotInstanceType

The Spot Instance request type.

Valid values include: one-time and persistent.

Required: No

Type: String

Update requires: No interruption

See Also

On this page: