Amazon EC2 SpotFleet SpotFleetRequestConfigData
SpotFleetRequestConfigData is a property of the AWS::EC2::SpotFleet resource
that defines the configuration of a Spot fleet request.
Syntax
JSON
{ "AllocationStrategy" :String, "ExcessCapacityTerminationPolicy" :String, "IamFleetRole" :String, "InstanceInterruptionBehavior" :String, "LaunchSpecifications" : [ LaunchSpecifications,...], "LaunchTemplateConfigs" : [ LaunchTemplateConfigs,...], "LoadBalancersConfig" : LoadBalancersConfig, "ReplaceUnhealthyInstances" :Boolean, "SpotPrice" :String, "TargetCapacity" :Integer, "TerminateInstancesWithExpiration" :Boolean, "Type" :String, "ValidFrom" :String, "ValidUntil" :String}
YAML
AllocationStrategy:StringExcessCapacityTerminationPolicy:StringIamFleetRole:StringInstanceInterruptionBehavior:StringLaunchSpecifications: - LaunchSpecifications LaunchTemplateConfigs: - LaunchTemplateConfigs LoadBalancersConfig: LoadBalancersConfig ReplaceUnhealthyInstances:BooleanSpotPrice:StringTargetCapacity:IntegerTerminateInstancesWithExpiration:BooleanType:StringValidFrom:StringValidUntil:String
Properties
For more information, including property defaults, valid values, and constraints, see SpotFleetRequestConfigData in the Amazon EC2 API Reference.
AllocationStrategy-
Indicates how to allocate the target capacity across the Spot pools that you specified in the Spot fleet request.
Required: No
Type: String
Update requires: Replacement
ExcessCapacityTerminationPolicy-
Indicates whether running Spot instances are terminated if you decrease the target capacity of the Spot fleet request below the current size of the Spot fleet.
Required: No
Type: String
Update requires: No interruption
IamFleetRole-
The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that grants the Spot fleet the ability to bid on, launch, and terminate instances on your behalf. For more information, see Spot Fleet Prerequisites in the Amazon EC2 User Guide for Linux Instances.
Required: Yes
Type: String
Update requires: Replacement
InstanceInterruptionBehavior-
The behavior when a Spot Instance is interrupted.
Required: No
Type: String
Update requires: Replacement
LaunchSpecifications-
The launch specifications for the Spot fleet request.
Required: Conditional. You must specify either
LaunchSpecificationsorLaunchTemplateConfigs.Type: List of Amazon Elastic Compute Cloud SpotFleet LaunchSpecifications
Update requires: Replacement
LaunchTemplateConfigs-
Describes a launch template and overrides.
Required: Conditional. You must specify either
LaunchSpecificationsorLaunchTemplateConfigs.Type: List of LaunchTemplateConfig
Update requires: Replacement
LoadBalancersConfig-
One or more Classic Load Balancers and target groups to attach to the Spot Fleet request. Spot Fleet registers the running Spot Instances with the specified Classic Load Balancers and target groups.
Required: No
Type: LoadBalancersConfig
Update requires: Replacement
ReplaceUnhealthyInstances-
Indicates whether the Spot fleet should replace unhealthy instances.
Required: No
Type: Boolean
Update requires: Replacement
SpotPrice-
The bid price per unit hour. For more information, see How Spot Fleet Works in the Amazon EC2 User Guide for Linux Instances.
Required: No
Type: String
Update requires: Replacement
TargetCapacity-
The number of units to request for the spot fleet. You can choose to set the target capacity as the number of instances or as a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. For more information, see How Spot Fleet Works in the Amazon EC2 User Guide for Linux Instances.
Required: Yes
Type: Integer
Update requires: No interruption
TerminateInstancesWithExpiration-
Indicates whether running Spot instances are terminated when the Spot fleet request expires.
Required: No
Type: Boolean
Update requires: Replacement
Type-
The type of request, which indicates whether the fleet will only request the target capacity or also attempt to maintain it.
Required: No
Type: String
Update requires: Replacement
ValidFrom-
The start date and time of the request, in UTC format (
YYYY-MM-DDTHH:MM:SSZ). By default, Amazon Elastic Compute Cloud (Amazon EC2 ) starts fulfilling the request immediately.Required: No
Type: String
Update requires: Replacement
ValidUntil-
The end date and time of the request, in UTC format (
YYYY-MM-DDTHH:MM:SSZ). After the end date and time, Amazon EC2 doesn't request new Spot instances or enable them to fulfill the request.Required: No
Type: String
Update requires: Replacement
