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}
YAML
SpotInstanceType:StringInstanceInterruptionBehavior:StringMaxPrice:String
Properties
InstanceInterruptionBehavior-
The behavior when a Spot Instance is interrupted. The default is
terminate.Valid values include:
hibernate,stop, andterminate.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-timeandpersistent.Required: No
Type: String
Update requires: No interruption
See Also
-
LaunchTemplateSpotMarketOptionsRequest in the Amazon EC2 API Reference
