We recommend new projects start with resources from the AWS provider.
aws-native.ec2.getSpotFleet
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::EC2::SpotFleet
Using getSpotFleet
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSpotFleet(args: GetSpotFleetArgs, opts?: InvokeOptions): Promise<GetSpotFleetResult>
function getSpotFleetOutput(args: GetSpotFleetOutputArgs, opts?: InvokeOptions): Output<GetSpotFleetResult>
def get_spot_fleet(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSpotFleetResult
def get_spot_fleet_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSpotFleetResult]
func LookupSpotFleet(ctx *Context, args *LookupSpotFleetArgs, opts ...InvokeOption) (*LookupSpotFleetResult, error)
func LookupSpotFleetOutput(ctx *Context, args *LookupSpotFleetOutputArgs, opts ...InvokeOption) LookupSpotFleetResultOutput
> Note: This function is named LookupSpotFleet
in the Go SDK.
public static class GetSpotFleet
{
public static Task<GetSpotFleetResult> InvokeAsync(GetSpotFleetArgs args, InvokeOptions? opts = null)
public static Output<GetSpotFleetResult> Invoke(GetSpotFleetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSpotFleetResult> getSpotFleet(GetSpotFleetArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ec2:getSpotFleet
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of the Spot Fleet.
- Id string
- The ID of the Spot Fleet.
- id String
- The ID of the Spot Fleet.
- id string
- The ID of the Spot Fleet.
- id str
- The ID of the Spot Fleet.
- id String
- The ID of the Spot Fleet.
getSpotFleet Result
The following output properties are available:
- Id string
- The ID of the Spot Fleet.
- Spot
Fleet Pulumi.Request Config Data Aws Native. Ec2. Outputs. Spot Fleet Request Config Data - Describes the configuration of a Spot Fleet request.
- Id string
- The ID of the Spot Fleet.
- Spot
Fleet SpotRequest Config Data Fleet Request Config Data - Describes the configuration of a Spot Fleet request.
- id String
- The ID of the Spot Fleet.
- spot
Fleet SpotRequest Config Data Fleet Request Config Data - Describes the configuration of a Spot Fleet request.
- id string
- The ID of the Spot Fleet.
- spot
Fleet SpotRequest Config Data Fleet Request Config Data - Describes the configuration of a Spot Fleet request.
- id str
- The ID of the Spot Fleet.
- spot_
fleet_ Spotrequest_ config_ data Fleet Request Config Data - Describes the configuration of a Spot Fleet request.
- id String
- The ID of the Spot Fleet.
- spot
Fleet Property MapRequest Config Data - Describes the configuration of a Spot Fleet request.
Supporting Types
SpotFleetAcceleratorCountRequest
SpotFleetAcceleratorTotalMemoryMiBRequest
SpotFleetBaselineEbsBandwidthMbpsRequest
SpotFleetBlockDeviceMapping
- Device
Name string - The device name (for example,
/dev/sdh
orxvdh
). - Ebs
Pulumi.
Aws Native. Ec2. Inputs. Spot Fleet Ebs Block Device - Parameters used to automatically set up EBS volumes when the instance is launched.
- No
Device string - To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.
- Virtual
Name string The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
- Device
Name string - The device name (for example,
/dev/sdh
orxvdh
). - Ebs
Spot
Fleet Ebs Block Device - Parameters used to automatically set up EBS volumes when the instance is launched.
- No
Device string - To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.
- Virtual
Name string The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
- device
Name String - The device name (for example,
/dev/sdh
orxvdh
). - ebs
Spot
Fleet Ebs Block Device - Parameters used to automatically set up EBS volumes when the instance is launched.
- no
Device String - To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.
- virtual
Name String The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
- device
Name string - The device name (for example,
/dev/sdh
orxvdh
). - ebs
Spot
Fleet Ebs Block Device - Parameters used to automatically set up EBS volumes when the instance is launched.
- no
Device string - To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.
- virtual
Name string The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
- device_
name str - The device name (for example,
/dev/sdh
orxvdh
). - ebs
Spot
Fleet Ebs Block Device - Parameters used to automatically set up EBS volumes when the instance is launched.
- no_
device str - To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.
- virtual_
name str The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
- device
Name String - The device name (for example,
/dev/sdh
orxvdh
). - ebs Property Map
- Parameters used to automatically set up EBS volumes when the instance is launched.
- no
Device String - To omit the device from the block device mapping, specify an empty string. When this property is specified, the device is removed from the block device mapping regardless of the assigned value.
- virtual
Name String The virtual device name (
ephemeral
N). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints: For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
SpotFleetClassicLoadBalancer
- Name string
- The name of the load balancer.
- Name string
- The name of the load balancer.
- name String
- The name of the load balancer.
- name string
- The name of the load balancer.
- name str
- The name of the load balancer.
- name String
- The name of the load balancer.
SpotFleetClassicLoadBalancersConfig
- Classic
Load List<Pulumi.Balancers Aws Native. Ec2. Inputs. Spot Fleet Classic Load Balancer> - One or more Classic Load Balancers.
- Classic
Load []SpotBalancers Fleet Classic Load Balancer - One or more Classic Load Balancers.
- classic
Load List<SpotBalancers Fleet Classic Load Balancer> - One or more Classic Load Balancers.
- classic
Load SpotBalancers Fleet Classic Load Balancer[] - One or more Classic Load Balancers.
- classic_
load_ Sequence[Spotbalancers Fleet Classic Load Balancer] - One or more Classic Load Balancers.
- classic
Load List<Property Map>Balancers - One or more Classic Load Balancers.
SpotFleetEbsBlockDevice
- Delete
On boolTermination - Indicates whether the EBS volume is deleted on instance termination. For more information, see Preserving Amazon EBS volumes on instance termination in the Amazon EC2 User Guide .
- Encrypted bool
Indicates whether the encryption state of an EBS volume is changed while being restored from a backing snapshot. The effect of setting the encryption state to
true
depends on the volume origin (new or from a snapshot), starting encryption state, ownership, and whether encryption by default is enabled. For more information, see Amazon EBS Encryption in the Amazon EC2 User Guide .In no case can you remove encryption from an encrypted volume.
Encrypted volumes can only be attached to instances that support Amazon EBS encryption. For more information, see Supported Instance Types .
This parameter is not returned by DescribeImageAttribute .
- Iops int
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.The following are the supported values for each volume type:
gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System . On other instances, you can achieve performance up to 32,000 IOPS.This parameter is required for
io1
andio2
volumes. The default forgp3
volumes is 3,000 IOPS.- Snapshot
Id string - The ID of the snapshot.
- Volume
Size int The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
The following are the supported sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- Volume
Type Pulumi.Aws Native. Ec2. Spot Fleet Ebs Block Device Volume Type - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide .
- Delete
On boolTermination - Indicates whether the EBS volume is deleted on instance termination. For more information, see Preserving Amazon EBS volumes on instance termination in the Amazon EC2 User Guide .
- Encrypted bool
Indicates whether the encryption state of an EBS volume is changed while being restored from a backing snapshot. The effect of setting the encryption state to
true
depends on the volume origin (new or from a snapshot), starting encryption state, ownership, and whether encryption by default is enabled. For more information, see Amazon EBS Encryption in the Amazon EC2 User Guide .In no case can you remove encryption from an encrypted volume.
Encrypted volumes can only be attached to instances that support Amazon EBS encryption. For more information, see Supported Instance Types .
This parameter is not returned by DescribeImageAttribute .
- Iops int
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.The following are the supported values for each volume type:
gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System . On other instances, you can achieve performance up to 32,000 IOPS.This parameter is required for
io1
andio2
volumes. The default forgp3
volumes is 3,000 IOPS.- Snapshot
Id string - The ID of the snapshot.
- Volume
Size int The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
The following are the supported sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- Volume
Type SpotFleet Ebs Block Device Volume Type - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide .
- delete
On BooleanTermination - Indicates whether the EBS volume is deleted on instance termination. For more information, see Preserving Amazon EBS volumes on instance termination in the Amazon EC2 User Guide .
- encrypted Boolean
Indicates whether the encryption state of an EBS volume is changed while being restored from a backing snapshot. The effect of setting the encryption state to
true
depends on the volume origin (new or from a snapshot), starting encryption state, ownership, and whether encryption by default is enabled. For more information, see Amazon EBS Encryption in the Amazon EC2 User Guide .In no case can you remove encryption from an encrypted volume.
Encrypted volumes can only be attached to instances that support Amazon EBS encryption. For more information, see Supported Instance Types .
This parameter is not returned by DescribeImageAttribute .
- iops Integer
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.The following are the supported values for each volume type:
gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System . On other instances, you can achieve performance up to 32,000 IOPS.This parameter is required for
io1
andio2
volumes. The default forgp3
volumes is 3,000 IOPS.- snapshot
Id String - The ID of the snapshot.
- volume
Size Integer The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
The following are the supported sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- volume
Type SpotFleet Ebs Block Device Volume Type - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide .
- delete
On booleanTermination - Indicates whether the EBS volume is deleted on instance termination. For more information, see Preserving Amazon EBS volumes on instance termination in the Amazon EC2 User Guide .
- encrypted boolean
Indicates whether the encryption state of an EBS volume is changed while being restored from a backing snapshot. The effect of setting the encryption state to
true
depends on the volume origin (new or from a snapshot), starting encryption state, ownership, and whether encryption by default is enabled. For more information, see Amazon EBS Encryption in the Amazon EC2 User Guide .In no case can you remove encryption from an encrypted volume.
Encrypted volumes can only be attached to instances that support Amazon EBS encryption. For more information, see Supported Instance Types .
This parameter is not returned by DescribeImageAttribute .
- iops number
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.The following are the supported values for each volume type:
gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System . On other instances, you can achieve performance up to 32,000 IOPS.This parameter is required for
io1
andio2
volumes. The default forgp3
volumes is 3,000 IOPS.- snapshot
Id string - The ID of the snapshot.
- volume
Size number The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
The following are the supported sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- volume
Type SpotFleet Ebs Block Device Volume Type - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide .
- delete_
on_ booltermination - Indicates whether the EBS volume is deleted on instance termination. For more information, see Preserving Amazon EBS volumes on instance termination in the Amazon EC2 User Guide .
- encrypted bool
Indicates whether the encryption state of an EBS volume is changed while being restored from a backing snapshot. The effect of setting the encryption state to
true
depends on the volume origin (new or from a snapshot), starting encryption state, ownership, and whether encryption by default is enabled. For more information, see Amazon EBS Encryption in the Amazon EC2 User Guide .In no case can you remove encryption from an encrypted volume.
Encrypted volumes can only be attached to instances that support Amazon EBS encryption. For more information, see Supported Instance Types .
This parameter is not returned by DescribeImageAttribute .
- iops int
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.The following are the supported values for each volume type:
gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System . On other instances, you can achieve performance up to 32,000 IOPS.This parameter is required for
io1
andio2
volumes. The default forgp3
volumes is 3,000 IOPS.- snapshot_
id str - The ID of the snapshot.
- volume_
size int The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
The following are the supported sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- volume_
type SpotFleet Ebs Block Device Volume Type - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide .
- delete
On BooleanTermination - Indicates whether the EBS volume is deleted on instance termination. For more information, see Preserving Amazon EBS volumes on instance termination in the Amazon EC2 User Guide .
- encrypted Boolean
Indicates whether the encryption state of an EBS volume is changed while being restored from a backing snapshot. The effect of setting the encryption state to
true
depends on the volume origin (new or from a snapshot), starting encryption state, ownership, and whether encryption by default is enabled. For more information, see Amazon EBS Encryption in the Amazon EC2 User Guide .In no case can you remove encryption from an encrypted volume.
Encrypted volumes can only be attached to instances that support Amazon EBS encryption. For more information, see Supported Instance Types .
This parameter is not returned by DescribeImageAttribute .
- iops Number
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.The following are the supported values for each volume type:
gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System . On other instances, you can achieve performance up to 32,000 IOPS.This parameter is required for
io1
andio2
volumes. The default forgp3
volumes is 3,000 IOPS.- snapshot
Id String - The ID of the snapshot.
- volume
Size Number The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
The following are the supported sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- volume
Type "gp2" | "gp3" | "io1" | "io2" | "sc1" | "st1" | "standard" - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide .
SpotFleetEbsBlockDeviceVolumeType
SpotFleetFleetLaunchTemplateSpecification
- Version string
The version number of the launch template.
Specifying
$Latest
or$Default
for the template version number is not supported. However, you can specifyLatestVersionNumber
orDefaultVersionNumber
using theFn::GetAtt
intrinsic function. For more information, see Fn::GetAtt .- Launch
Template stringId The ID of the launch template.
You must specify the
LaunchTemplateId
or theLaunchTemplateName
, but not both.- Launch
Template stringName The name of the launch template.
You must specify the
LaunchTemplateName
or theLaunchTemplateId
, but not both.
- Version string
The version number of the launch template.
Specifying
$Latest
or$Default
for the template version number is not supported. However, you can specifyLatestVersionNumber
orDefaultVersionNumber
using theFn::GetAtt
intrinsic function. For more information, see Fn::GetAtt .- Launch
Template stringId The ID of the launch template.
You must specify the
LaunchTemplateId
or theLaunchTemplateName
, but not both.- Launch
Template stringName The name of the launch template.
You must specify the
LaunchTemplateName
or theLaunchTemplateId
, but not both.
- version String
The version number of the launch template.
Specifying
$Latest
or$Default
for the template version number is not supported. However, you can specifyLatestVersionNumber
orDefaultVersionNumber
using theFn::GetAtt
intrinsic function. For more information, see Fn::GetAtt .- launch
Template StringId The ID of the launch template.
You must specify the
LaunchTemplateId
or theLaunchTemplateName
, but not both.- launch
Template StringName The name of the launch template.
You must specify the
LaunchTemplateName
or theLaunchTemplateId
, but not both.
- version string
The version number of the launch template.
Specifying
$Latest
or$Default
for the template version number is not supported. However, you can specifyLatestVersionNumber
orDefaultVersionNumber
using theFn::GetAtt
intrinsic function. For more information, see Fn::GetAtt .- launch
Template stringId The ID of the launch template.
You must specify the
LaunchTemplateId
or theLaunchTemplateName
, but not both.- launch
Template stringName The name of the launch template.
You must specify the
LaunchTemplateName
or theLaunchTemplateId
, but not both.
- version str
The version number of the launch template.
Specifying
$Latest
or$Default
for the template version number is not supported. However, you can specifyLatestVersionNumber
orDefaultVersionNumber
using theFn::GetAtt
intrinsic function. For more information, see Fn::GetAtt .- launch_
template_ strid The ID of the launch template.
You must specify the
LaunchTemplateId
or theLaunchTemplateName
, but not both.- launch_
template_ strname The name of the launch template.
You must specify the
LaunchTemplateName
or theLaunchTemplateId
, but not both.
- version String
The version number of the launch template.
Specifying
$Latest
or$Default
for the template version number is not supported. However, you can specifyLatestVersionNumber
orDefaultVersionNumber
using theFn::GetAtt
intrinsic function. For more information, see Fn::GetAtt .- launch
Template StringId The ID of the launch template.
You must specify the
LaunchTemplateId
or theLaunchTemplateName
, but not both.- launch
Template StringName The name of the launch template.
You must specify the
LaunchTemplateName
or theLaunchTemplateId
, but not both.
SpotFleetGroupIdentifier
- Group
Id string - The ID of the security group.
- Group
Id string - The ID of the security group.
- group
Id String - The ID of the security group.
- group
Id string - The ID of the security group.
- group_
id str - The ID of the security group.
- group
Id String - The ID of the security group.
SpotFleetIamInstanceProfileSpecification
- Arn string
- The Amazon Resource Name (ARN) of the instance profile.
- Arn string
- The Amazon Resource Name (ARN) of the instance profile.
- arn String
- The Amazon Resource Name (ARN) of the instance profile.
- arn string
- The Amazon Resource Name (ARN) of the instance profile.
- arn str
- The Amazon Resource Name (ARN) of the instance profile.
- arn String
- The Amazon Resource Name (ARN) of the instance profile.
SpotFleetInstanceIpv6Address
- Ipv6Address string
- The IPv6 address.
- Ipv6Address string
- The IPv6 address.
- ipv6Address String
- The IPv6 address.
- ipv6Address string
- The IPv6 address.
- ipv6_
address str - The IPv6 address.
- ipv6Address String
- The IPv6 address.
SpotFleetInstanceNetworkInterfaceSpecification
- Associate
Public boolIp Address Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is
true
.AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page .
- Delete
On boolTermination - Indicates whether the network interface is deleted when the instance is terminated.
- Description string
- The description of the network interface. Applies only if creating a network interface when launching an instance.
- Device
Index int The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
- Groups List<string>
- The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
- Ipv6Address
Count int - A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
- Ipv6Addresses
List<Pulumi.
Aws Native. Ec2. Inputs. Spot Fleet Instance Ipv6Address> - The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
- Network
Interface stringId The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
- Private
Ip List<Pulumi.Addresses Aws Native. Ec2. Inputs. Spot Fleet Private Ip Address Specification> - The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- Secondary
Private intIp Address Count - The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- Subnet
Id string - The ID of the subnet associated with the network interface.
- Associate
Public boolIp Address Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is
true
.AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page .
- Delete
On boolTermination - Indicates whether the network interface is deleted when the instance is terminated.
- Description string
- The description of the network interface. Applies only if creating a network interface when launching an instance.
- Device
Index int The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
- Groups []string
- The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
- Ipv6Address
Count int - A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
- Ipv6Addresses
[]Spot
Fleet Instance Ipv6Address - The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
- Network
Interface stringId The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
- Private
Ip []SpotAddresses Fleet Private Ip Address Specification - The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- Secondary
Private intIp Address Count - The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- Subnet
Id string - The ID of the subnet associated with the network interface.
- associate
Public BooleanIp Address Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is
true
.AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page .
- delete
On BooleanTermination - Indicates whether the network interface is deleted when the instance is terminated.
- description String
- The description of the network interface. Applies only if creating a network interface when launching an instance.
- device
Index Integer The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
- groups List<String>
- The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
- ipv6Address
Count Integer - A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
- ipv6Addresses
List<Spot
Fleet Instance Ipv6Address> - The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
- network
Interface StringId The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
- private
Ip List<SpotAddresses Fleet Private Ip Address Specification> - The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- secondary
Private IntegerIp Address Count - The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- subnet
Id String - The ID of the subnet associated with the network interface.
- associate
Public booleanIp Address Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is
true
.AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page .
- delete
On booleanTermination - Indicates whether the network interface is deleted when the instance is terminated.
- description string
- The description of the network interface. Applies only if creating a network interface when launching an instance.
- device
Index number The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
- groups string[]
- The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
- ipv6Address
Count number - A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
- ipv6Addresses
Spot
Fleet Instance Ipv6Address[] - The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
- network
Interface stringId The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
- private
Ip SpotAddresses Fleet Private Ip Address Specification[] - The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- secondary
Private numberIp Address Count - The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- subnet
Id string - The ID of the subnet associated with the network interface.
- associate_
public_ boolip_ address Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is
true
.AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page .
- delete_
on_ booltermination - Indicates whether the network interface is deleted when the instance is terminated.
- description str
- The description of the network interface. Applies only if creating a network interface when launching an instance.
- device_
index int The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
- groups Sequence[str]
- The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
- ipv6_
address_ intcount - A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
- ipv6_
addresses Sequence[SpotFleet Instance Ipv6Address] - The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
- network_
interface_ strid The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
- private_
ip_ Sequence[Spotaddresses Fleet Private Ip Address Specification] - The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- secondary_
private_ intip_ address_ count - The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- subnet_
id str - The ID of the subnet associated with the network interface.
- associate
Public BooleanIp Address Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is
true
.AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page .
- delete
On BooleanTermination - Indicates whether the network interface is deleted when the instance is terminated.
- description String
- The description of the network interface. Applies only if creating a network interface when launching an instance.
- device
Index Number The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
- groups List<String>
- The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
- ipv6Address
Count Number - A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
- ipv6Addresses List<Property Map>
- The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
- network
Interface StringId The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
- private
Ip List<Property Map>Addresses - The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- secondary
Private NumberIp Address Count - The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- subnet
Id String - The ID of the subnet associated with the network interface.
SpotFleetInstanceRequirementsRequest
- Accelerator
Count Pulumi.Aws Native. Ec2. Inputs. Spot Fleet Accelerator Count Request The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
.Default: No minimum or maximum limits
- Accelerator
Manufacturers List<Pulumi.Aws Native. Ec2. Spot Fleet Instance Requirements Request Accelerator Manufacturers Item> Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- Accelerator
Names List<Pulumi.Aws Native. Ec2. Spot Fleet Instance Requirements Request Accelerator Names Item> The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- Accelerator
Total Pulumi.Memory Mi B Aws Native. Ec2. Inputs. Spot Fleet Accelerator Total Memory Mi BRequest The minimum and maximum amount of total accelerator memory, in MiB.
Default: No minimum or maximum limits
- Accelerator
Types List<Pulumi.Aws Native. Ec2. Spot Fleet Instance Requirements Request Accelerator Types Item> The accelerator types that must be on the instance type.
- To include instance types with GPU hardware, specify
gpu
. - To include instance types with FPGA hardware, specify
fpga
.
Default: Any accelerator type
- To include instance types with GPU hardware, specify
- Allowed
Instance List<string>Types The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to allow an instance type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.Default: All instance types
- Bare
Metal Pulumi.Aws Native. Ec2. Spot Fleet Instance Requirements Request Bare Metal Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- Baseline
Ebs Pulumi.Bandwidth Mbps Aws Native. Ec2. Inputs. Spot Fleet Baseline Ebs Bandwidth Mbps Request The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- Burstable
Performance Pulumi.Aws Native. Ec2. Spot Fleet Instance Requirements Request Burstable Performance Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances .
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- Cpu
Manufacturers List<Pulumi.Aws Native. Ec2. Spot Fleet Instance Requirements Request Cpu Manufacturers Item> The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Default: Any manufacturer
- For instance types with Intel CPUs, specify
- Excluded
Instance List<string>Types The instance types to exclude.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to exclude an instance family, type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types.If you specify
ExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
.Default: No excluded instance types
- Instance
Generations List<Pulumi.Aws Native. Ec2. Spot Fleet Instance Requirements Request Instance Generations Item> Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide .
For current generation instance types, specify
current
.For previous generation instance types, specify
previous
.Default: Current and previous generation instance types
- Local
Storage Pulumi.Aws Native. Ec2. Spot Fleet Instance Requirements Request Local Storage Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide .
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- Local
Storage List<Pulumi.Types Aws Native. Ec2. Spot Fleet Instance Requirements Request Local Storage Types Item> The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- Max
Spot intPrice As Percentage Of Optimal On Demand Price [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price.Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.- Memory
Gi Pulumi.BPer VCpu Aws Native. Ec2. Inputs. Spot Fleet Memory Gi BPer VCpu Request The minimum and maximum amount of memory per vCPU, in GiB.
Default: No minimum or maximum limits
- Memory
Mi Pulumi.B Aws Native. Ec2. Inputs. Spot Fleet Memory Mi BRequest - The minimum and maximum amount of memory, in MiB.
- Network
Bandwidth Pulumi.Gbps Aws Native. Ec2. Inputs. Spot Fleet Network Bandwidth Gbps Request The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see Amazon EC2 instance network bandwidth in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- Network
Interface Pulumi.Count Aws Native. Ec2. Inputs. Spot Fleet Network Interface Count Request The minimum and maximum number of network interfaces.
Default: No minimum or maximum limits
- On
Demand intMax Price Percentage Over Lowest Price [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To indicate no price protection threshold, specify a high value, such as
999999
.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.Default:
20
- Require
Hibernate boolSupport Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores .
Default:
false
- Spot
Max intPrice Percentage Over Lowest Price [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.Default:
100
- Total
Local Pulumi.Storage Gb Aws Native. Ec2. Inputs. Spot Fleet Total Local Storage Gb Request The minimum and maximum amount of total local storage, in GB.
Default: No minimum or maximum limits
- VCpu
Count Pulumi.Aws Native. Ec2. Inputs. Spot Fleet VCpu Count Range Request - The minimum and maximum number of vCPUs.
- Accelerator
Count SpotFleet Accelerator Count Request The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
.Default: No minimum or maximum limits
- Accelerator
Manufacturers []SpotFleet Instance Requirements Request Accelerator Manufacturers Item Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- Accelerator
Names []SpotFleet Instance Requirements Request Accelerator Names Item The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- Accelerator
Total SpotMemory Mi B Fleet Accelerator Total Memory Mi BRequest The minimum and maximum amount of total accelerator memory, in MiB.
Default: No minimum or maximum limits
- Accelerator
Types []SpotFleet Instance Requirements Request Accelerator Types Item The accelerator types that must be on the instance type.
- To include instance types with GPU hardware, specify
gpu
. - To include instance types with FPGA hardware, specify
fpga
.
Default: Any accelerator type
- To include instance types with GPU hardware, specify
- Allowed
Instance []stringTypes The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to allow an instance type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.Default: All instance types
- Bare
Metal SpotFleet Instance Requirements Request Bare Metal Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- Baseline
Ebs SpotBandwidth Mbps Fleet Baseline Ebs Bandwidth Mbps Request The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- Burstable
Performance SpotFleet Instance Requirements Request Burstable Performance Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances .
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- Cpu
Manufacturers []SpotFleet Instance Requirements Request Cpu Manufacturers Item The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Default: Any manufacturer
- For instance types with Intel CPUs, specify
- Excluded
Instance []stringTypes The instance types to exclude.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to exclude an instance family, type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types.If you specify
ExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
.Default: No excluded instance types
- Instance
Generations []SpotFleet Instance Requirements Request Instance Generations Item Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide .
For current generation instance types, specify
current
.For previous generation instance types, specify
previous
.Default: Current and previous generation instance types
- Local
Storage SpotFleet Instance Requirements Request Local Storage Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide .
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- Local
Storage []SpotTypes Fleet Instance Requirements Request Local Storage Types Item The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- Max
Spot intPrice As Percentage Of Optimal On Demand Price [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price.Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.- Memory
Gi SpotBPer VCpu Fleet Memory Gi BPer VCpu Request The minimum and maximum amount of memory per vCPU, in GiB.
Default: No minimum or maximum limits
- Memory
Mi SpotB Fleet Memory Mi BRequest - The minimum and maximum amount of memory, in MiB.
- Network
Bandwidth SpotGbps Fleet Network Bandwidth Gbps Request The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see Amazon EC2 instance network bandwidth in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- Network
Interface SpotCount Fleet Network Interface Count Request The minimum and maximum number of network interfaces.
Default: No minimum or maximum limits
- On
Demand intMax Price Percentage Over Lowest Price [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To indicate no price protection threshold, specify a high value, such as
999999
.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.Default:
20
- Require
Hibernate boolSupport Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores .
Default:
false
- Spot
Max intPrice Percentage Over Lowest Price [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.Default:
100
- Total
Local SpotStorage Gb Fleet Total Local Storage Gb Request The minimum and maximum amount of total local storage, in GB.
Default: No minimum or maximum limits
- VCpu
Count SpotFleet VCpu Count Range Request - The minimum and maximum number of vCPUs.
- accelerator
Count SpotFleet Accelerator Count Request The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
.Default: No minimum or maximum limits
- accelerator
Manufacturers List<SpotFleet Instance Requirements Request Accelerator Manufacturers Item> Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- accelerator
Names List<SpotFleet Instance Requirements Request Accelerator Names Item> The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- accelerator
Total SpotMemory Mi B Fleet Accelerator Total Memory Mi BRequest The minimum and maximum amount of total accelerator memory, in MiB.
Default: No minimum or maximum limits
- accelerator
Types List<SpotFleet Instance Requirements Request Accelerator Types Item> The accelerator types that must be on the instance type.
- To include instance types with GPU hardware, specify
gpu
. - To include instance types with FPGA hardware, specify
fpga
.
Default: Any accelerator type
- To include instance types with GPU hardware, specify
- allowed
Instance List<String>Types The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to allow an instance type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.Default: All instance types
- bare
Metal SpotFleet Instance Requirements Request Bare Metal Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- baseline
Ebs SpotBandwidth Mbps Fleet Baseline Ebs Bandwidth Mbps Request The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- burstable
Performance SpotFleet Instance Requirements Request Burstable Performance Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances .
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- cpu
Manufacturers List<SpotFleet Instance Requirements Request Cpu Manufacturers Item> The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Default: Any manufacturer
- For instance types with Intel CPUs, specify
- excluded
Instance List<String>Types The instance types to exclude.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to exclude an instance family, type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types.If you specify
ExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
.Default: No excluded instance types
- instance
Generations List<SpotFleet Instance Requirements Request Instance Generations Item> Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide .
For current generation instance types, specify
current
.For previous generation instance types, specify
previous
.Default: Current and previous generation instance types
- local
Storage SpotFleet Instance Requirements Request Local Storage Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide .
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- local
Storage List<SpotTypes Fleet Instance Requirements Request Local Storage Types Item> The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- max
Spot IntegerPrice As Percentage Of Optimal On Demand Price [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price.Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.- memory
Gi SpotBPer VCpu Fleet Memory Gi BPer VCpu Request The minimum and maximum amount of memory per vCPU, in GiB.
Default: No minimum or maximum limits
- memory
Mi SpotB Fleet Memory Mi BRequest - The minimum and maximum amount of memory, in MiB.
- network
Bandwidth SpotGbps Fleet Network Bandwidth Gbps Request The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see Amazon EC2 instance network bandwidth in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- network
Interface SpotCount Fleet Network Interface Count Request The minimum and maximum number of network interfaces.
Default: No minimum or maximum limits
- on
Demand IntegerMax Price Percentage Over Lowest Price [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To indicate no price protection threshold, specify a high value, such as
999999
.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.Default:
20
- require
Hibernate BooleanSupport Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores .
Default:
false
- spot
Max IntegerPrice Percentage Over Lowest Price [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.Default:
100
- total
Local SpotStorage Gb Fleet Total Local Storage Gb Request The minimum and maximum amount of total local storage, in GB.
Default: No minimum or maximum limits
- v
Cpu SpotCount Fleet VCpu Count Range Request - The minimum and maximum number of vCPUs.
- accelerator
Count SpotFleet Accelerator Count Request The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
.Default: No minimum or maximum limits
- accelerator
Manufacturers SpotFleet Instance Requirements Request Accelerator Manufacturers Item[] Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- accelerator
Names SpotFleet Instance Requirements Request Accelerator Names Item[] The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- accelerator
Total SpotMemory Mi B Fleet Accelerator Total Memory Mi BRequest The minimum and maximum amount of total accelerator memory, in MiB.
Default: No minimum or maximum limits
- accelerator
Types SpotFleet Instance Requirements Request Accelerator Types Item[] The accelerator types that must be on the instance type.
- To include instance types with GPU hardware, specify
gpu
. - To include instance types with FPGA hardware, specify
fpga
.
Default: Any accelerator type
- To include instance types with GPU hardware, specify
- allowed
Instance string[]Types The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to allow an instance type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.Default: All instance types
- bare
Metal SpotFleet Instance Requirements Request Bare Metal Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- baseline
Ebs SpotBandwidth Mbps Fleet Baseline Ebs Bandwidth Mbps Request The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- burstable
Performance SpotFleet Instance Requirements Request Burstable Performance Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances .
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- cpu
Manufacturers SpotFleet Instance Requirements Request Cpu Manufacturers Item[] The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Default: Any manufacturer
- For instance types with Intel CPUs, specify
- excluded
Instance string[]Types The instance types to exclude.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to exclude an instance family, type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types.If you specify
ExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
.Default: No excluded instance types
- instance
Generations SpotFleet Instance Requirements Request Instance Generations Item[] Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide .
For current generation instance types, specify
current
.For previous generation instance types, specify
previous
.Default: Current and previous generation instance types
- local
Storage SpotFleet Instance Requirements Request Local Storage Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide .
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- local
Storage SpotTypes Fleet Instance Requirements Request Local Storage Types Item[] The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- max
Spot numberPrice As Percentage Of Optimal On Demand Price [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price.Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.- memory
Gi SpotBPer VCpu Fleet Memory Gi BPer VCpu Request The minimum and maximum amount of memory per vCPU, in GiB.
Default: No minimum or maximum limits
- memory
Mi SpotB Fleet Memory Mi BRequest - The minimum and maximum amount of memory, in MiB.
- network
Bandwidth SpotGbps Fleet Network Bandwidth Gbps Request The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see Amazon EC2 instance network bandwidth in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- network
Interface SpotCount Fleet Network Interface Count Request The minimum and maximum number of network interfaces.
Default: No minimum or maximum limits
- on
Demand numberMax Price Percentage Over Lowest Price [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To indicate no price protection threshold, specify a high value, such as
999999
.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.Default:
20
- require
Hibernate booleanSupport Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores .
Default:
false
- spot
Max numberPrice Percentage Over Lowest Price [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.Default:
100
- total
Local SpotStorage Gb Fleet Total Local Storage Gb Request The minimum and maximum amount of total local storage, in GB.
Default: No minimum or maximum limits
- v
Cpu SpotCount Fleet VCpu Count Range Request - The minimum and maximum number of vCPUs.
- accelerator_
count SpotFleet Accelerator Count Request The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
.Default: No minimum or maximum limits
- accelerator_
manufacturers Sequence[SpotFleet Instance Requirements Request Accelerator Manufacturers Item] Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- accelerator_
names Sequence[SpotFleet Instance Requirements Request Accelerator Names Item] The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- accelerator_
total_ Spotmemory_ mi_ b Fleet Accelerator Total Memory Mi BRequest The minimum and maximum amount of total accelerator memory, in MiB.
Default: No minimum or maximum limits
- accelerator_
types Sequence[SpotFleet Instance Requirements Request Accelerator Types Item] The accelerator types that must be on the instance type.
- To include instance types with GPU hardware, specify
gpu
. - To include instance types with FPGA hardware, specify
fpga
.
Default: Any accelerator type
- To include instance types with GPU hardware, specify
- allowed_
instance_ Sequence[str]types The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to allow an instance type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.Default: All instance types
- bare_
metal SpotFleet Instance Requirements Request Bare Metal Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- baseline_
ebs_ Spotbandwidth_ mbps Fleet Baseline Ebs Bandwidth Mbps Request The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- burstable_
performance SpotFleet Instance Requirements Request Burstable Performance Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances .
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- cpu_
manufacturers Sequence[SpotFleet Instance Requirements Request Cpu Manufacturers Item] The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Default: Any manufacturer
- For instance types with Intel CPUs, specify
- excluded_
instance_ Sequence[str]types The instance types to exclude.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to exclude an instance family, type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types.If you specify
ExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
.Default: No excluded instance types
- instance_
generations Sequence[SpotFleet Instance Requirements Request Instance Generations Item] Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide .
For current generation instance types, specify
current
.For previous generation instance types, specify
previous
.Default: Current and previous generation instance types
- local_
storage SpotFleet Instance Requirements Request Local Storage Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide .
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- local_
storage_ Sequence[Spottypes Fleet Instance Requirements Request Local Storage Types Item] The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- max_
spot_ intprice_ as_ percentage_ of_ optimal_ on_ demand_ price [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price.Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.- memory_
gi_ Spotb_ per_ v_ cpu Fleet Memory Gi BPer VCpu Request The minimum and maximum amount of memory per vCPU, in GiB.
Default: No minimum or maximum limits
- memory_
mi_ Spotb Fleet Memory Mi BRequest - The minimum and maximum amount of memory, in MiB.
- network_
bandwidth_ Spotgbps Fleet Network Bandwidth Gbps Request The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see Amazon EC2 instance network bandwidth in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- network_
interface_ Spotcount Fleet Network Interface Count Request The minimum and maximum number of network interfaces.
Default: No minimum or maximum limits
- on_
demand_ intmax_ price_ percentage_ over_ lowest_ price [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To indicate no price protection threshold, specify a high value, such as
999999
.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.Default:
20
- require_
hibernate_ boolsupport Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores .
Default:
false
- spot_
max_ intprice_ percentage_ over_ lowest_ price [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.Default:
100
- total_
local_ Spotstorage_ gb Fleet Total Local Storage Gb Request The minimum and maximum amount of total local storage, in GB.
Default: No minimum or maximum limits
- v_
cpu_ Spotcount Fleet VCpu Count Range Request - The minimum and maximum number of vCPUs.
- accelerator
Count Property Map The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
.Default: No minimum or maximum limits
- accelerator
Manufacturers List<"amazon-web-services" | "amd" | "habana" | "nvidia" | "xilinx"> Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- accelerator
Names List<"a10g" | "a100" | "h100" | "inferentia" | "k520" | "k80" | "m60" | "radeon-pro-v520" | "t4" | "t4g" | "vu9p" | "v100"> The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- accelerator
Total Property MapMemory Mi B The minimum and maximum amount of total accelerator memory, in MiB.
Default: No minimum or maximum limits
- accelerator
Types List<"gpu" | "fpga" | "inference"> The accelerator types that must be on the instance type.
- To include instance types with GPU hardware, specify
gpu
. - To include instance types with FPGA hardware, specify
fpga
.
Default: Any accelerator type
- To include instance types with GPU hardware, specify
- allowed
Instance List<String>Types The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to allow an instance type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types.If you specify
AllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
.Default: All instance types
- bare
Metal "included" | "required" | "excluded" Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- baseline
Ebs Property MapBandwidth Mbps The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- burstable
Performance "included" | "required" | "excluded" Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances .
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- cpu
Manufacturers List<"intel" | "amd" | "amazon-web-services" | "apple"> The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Default: Any manufacturer
- For instance types with Intel CPUs, specify
- excluded
Instance List<String>Types The instance types to exclude.
You can use strings with one or more wild cards, represented by an asterisk (
*
), to exclude an instance family, type, size, or generation. The following are examples:m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
.For example, if you specify
c5*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types.If you specify
ExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
.Default: No excluded instance types
- instance
Generations List<"current" | "previous"> Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide .
For current generation instance types, specify
current
.For previous generation instance types, specify
previous
.Default: Current and previous generation instance types
- local
Storage "included" | "required" | "excluded" Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide .
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- local
Storage List<"hdd" | "ssd">Types The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- max
Spot NumberPrice As Percentage Of Optimal On Demand Price [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price.Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.- memory
Gi Property MapBPer VCpu The minimum and maximum amount of memory per vCPU, in GiB.
Default: No minimum or maximum limits
- memory
Mi Property MapB - The minimum and maximum amount of memory, in MiB.
- network
Bandwidth Property MapGbps The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see Amazon EC2 instance network bandwidth in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
- network
Interface Property MapCount The minimum and maximum number of network interfaces.
Default: No minimum or maximum limits
- on
Demand NumberMax Price Percentage Over Lowest Price [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To indicate no price protection threshold, specify a high value, such as
999999
.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.Default:
20
- require
Hibernate BooleanSupport Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores .
Default:
false
- spot
Max NumberPrice Percentage Over Lowest Price [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
Only one of
SpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
.Default:
100
- total
Local Property MapStorage Gb The minimum and maximum amount of total local storage, in GB.
Default: No minimum or maximum limits
- v
Cpu Property MapCount - The minimum and maximum number of vCPUs.
SpotFleetInstanceRequirementsRequestAcceleratorManufacturersItem
SpotFleetInstanceRequirementsRequestAcceleratorNamesItem
SpotFleetInstanceRequirementsRequestAcceleratorTypesItem
SpotFleetInstanceRequirementsRequestBareMetal
SpotFleetInstanceRequirementsRequestBurstablePerformance
SpotFleetInstanceRequirementsRequestCpuManufacturersItem
SpotFleetInstanceRequirementsRequestInstanceGenerationsItem
SpotFleetInstanceRequirementsRequestLocalStorage
SpotFleetInstanceRequirementsRequestLocalStorageTypesItem
SpotFleetLaunchSpecification
- Image
Id string - The ID of the AMI.
- Block
Device List<Pulumi.Mappings Aws Native. Ec2. Inputs. Spot Fleet Block Device Mapping> - One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
- Ebs
Optimized bool Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default:
false
- Iam
Instance Pulumi.Profile Aws Native. Ec2. Inputs. Spot Fleet Iam Instance Profile Specification - The IAM instance profile.
- Instance
Requirements Pulumi.Aws Native. Ec2. Inputs. Spot Fleet Instance Requirements Request The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- Instance
Type string - The instance type.
- Kernel
Id string - The ID of the kernel.
- Key
Name string - The name of the key pair.
- Monitoring
Pulumi.
Aws Native. Ec2. Inputs. Spot Fleet Monitoring - Enable or disable monitoring for the instances.
- Network
Interfaces List<Pulumi.Aws Native. Ec2. Inputs. Spot Fleet Instance Network Interface Specification> - The network interfaces.
- Placement
Pulumi.
Aws Native. Ec2. Inputs. Spot Fleet Spot Placement - The placement information.
- Ramdisk
Id string - The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the AWS Resource Center and search for the kernel ID.
- Security
Groups List<Pulumi.Aws Native. Ec2. Inputs. Spot Fleet Group Identifier> The security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- Spot
Price string The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- Subnet
Id string The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
- List<Pulumi.
Aws Native. Ec2. Inputs. Spot Fleet Tag Specification> - The tags to apply during creation.
- User
Data string - The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.
- Weighted
Capacity double The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
- Image
Id string - The ID of the AMI.
- Block
Device []SpotMappings Fleet Block Device Mapping - One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
- Ebs
Optimized bool Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default:
false
- Iam
Instance SpotProfile Fleet Iam Instance Profile Specification - The IAM instance profile.
- Instance
Requirements SpotFleet Instance Requirements Request The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- Instance
Type string - The instance type.
- Kernel
Id string - The ID of the kernel.
- Key
Name string - The name of the key pair.
- Monitoring
Spot
Fleet Monitoring - Enable or disable monitoring for the instances.
- Network
Interfaces []SpotFleet Instance Network Interface Specification - The network interfaces.
- Placement
Spot
Fleet Spot Placement - The placement information.
- Ramdisk
Id string - The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the AWS Resource Center and search for the kernel ID.
- Security
Groups []SpotFleet Group Identifier The security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- Spot
Price string The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- Subnet
Id string The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
- []Spot
Fleet Tag Specification - The tags to apply during creation.
- User
Data string - The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.
- Weighted
Capacity float64 The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
- image
Id String - The ID of the AMI.
- block
Device List<SpotMappings Fleet Block Device Mapping> - One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
- ebs
Optimized Boolean Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default:
false
- iam
Instance SpotProfile Fleet Iam Instance Profile Specification - The IAM instance profile.
- instance
Requirements SpotFleet Instance Requirements Request The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- instance
Type String - The instance type.
- kernel
Id String - The ID of the kernel.
- key
Name String - The name of the key pair.
- monitoring
Spot
Fleet Monitoring - Enable or disable monitoring for the instances.
- network
Interfaces List<SpotFleet Instance Network Interface Specification> - The network interfaces.
- placement
Spot
Fleet Spot Placement - The placement information.
- ramdisk
Id String - The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the AWS Resource Center and search for the kernel ID.
- security
Groups List<SpotFleet Group Identifier> The security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- spot
Price String The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- subnet
Id String The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
- List<Spot
Fleet Tag Specification> - The tags to apply during creation.
- user
Data String - The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.
- weighted
Capacity Double The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
- image
Id string - The ID of the AMI.
- block
Device SpotMappings Fleet Block Device Mapping[] - One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
- ebs
Optimized boolean Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default:
false
- iam
Instance SpotProfile Fleet Iam Instance Profile Specification - The IAM instance profile.
- instance
Requirements SpotFleet Instance Requirements Request The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- instance
Type string - The instance type.
- kernel
Id string - The ID of the kernel.
- key
Name string - The name of the key pair.
- monitoring
Spot
Fleet Monitoring - Enable or disable monitoring for the instances.
- network
Interfaces SpotFleet Instance Network Interface Specification[] - The network interfaces.
- placement
Spot
Fleet Spot Placement - The placement information.
- ramdisk
Id string - The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the AWS Resource Center and search for the kernel ID.
- security
Groups SpotFleet Group Identifier[] The security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- spot
Price string The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- subnet
Id string The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
- Spot
Fleet Tag Specification[] - The tags to apply during creation.
- user
Data string - The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.
- weighted
Capacity number The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
- image_
id str - The ID of the AMI.
- block_
device_ Sequence[Spotmappings Fleet Block Device Mapping] - One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
- ebs_
optimized bool Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default:
false
- iam_
instance_ Spotprofile Fleet Iam Instance Profile Specification - The IAM instance profile.
- instance_
requirements SpotFleet Instance Requirements Request The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- instance_
type str - The instance type.
- kernel_
id str - The ID of the kernel.
- key_
name str - The name of the key pair.
- monitoring
Spot
Fleet Monitoring - Enable or disable monitoring for the instances.
- network_
interfaces Sequence[SpotFleet Instance Network Interface Specification] - The network interfaces.
- placement
Spot
Fleet Spot Placement - The placement information.
- ramdisk_
id str - The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the AWS Resource Center and search for the kernel ID.
- security_
groups Sequence[SpotFleet Group Identifier] The security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- spot_
price str The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- subnet_
id str The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
- tag_
specifications Sequence[SpotFleet Tag Specification] - The tags to apply during creation.
- user_
data str - The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.
- weighted_
capacity float The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
- image
Id String - The ID of the AMI.
- block
Device List<Property Map>Mappings - One or more block devices that are mapped to the Spot Instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
- ebs
Optimized Boolean Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default:
false
- iam
Instance Property MapProfile - The IAM instance profile.
- instance
Requirements Property Map The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- instance
Type String - The instance type.
- kernel
Id String - The ID of the kernel.
- key
Name String - The name of the key pair.
- monitoring Property Map
- Enable or disable monitoring for the instances.
- network
Interfaces List<Property Map> - The network interfaces.
- placement Property Map
- The placement information.
- ramdisk
Id String - The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the AWS Resource Center and search for the kernel ID.
- security
Groups List<Property Map> The security groups.
If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- spot
Price String The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- subnet
Id String The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".
If you specify a network interface, you must specify any subnets as part of the network interface instead of using this parameter.
- List<Property Map>
- The tags to apply during creation.
- user
Data String - The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.
- weighted
Capacity Number The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
SpotFleetLaunchTemplateConfig
- Launch
Template Pulumi.Specification Aws Native. Ec2. Inputs. Spot Fleet Fleet Launch Template Specification - The launch template to use. Make sure that the launch template does not contain the
NetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet. - Overrides
List<Pulumi.
Aws Native. Ec2. Inputs. Spot Fleet Launch Template Overrides> - Any parameters that you specify override the same parameters in the launch template.
- Launch
Template SpotSpecification Fleet Fleet Launch Template Specification - The launch template to use. Make sure that the launch template does not contain the
NetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet. - Overrides
[]Spot
Fleet Launch Template Overrides - Any parameters that you specify override the same parameters in the launch template.
- launch
Template SpotSpecification Fleet Fleet Launch Template Specification - The launch template to use. Make sure that the launch template does not contain the
NetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet. - overrides
List<Spot
Fleet Launch Template Overrides> - Any parameters that you specify override the same parameters in the launch template.
- launch
Template SpotSpecification Fleet Fleet Launch Template Specification - The launch template to use. Make sure that the launch template does not contain the
NetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet. - overrides
Spot
Fleet Launch Template Overrides[] - Any parameters that you specify override the same parameters in the launch template.
- launch_
template_ Spotspecification Fleet Fleet Launch Template Specification - The launch template to use. Make sure that the launch template does not contain the
NetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet. - overrides
Sequence[Spot
Fleet Launch Template Overrides] - Any parameters that you specify override the same parameters in the launch template.
- launch
Template Property MapSpecification - The launch template to use. Make sure that the launch template does not contain the
NetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet. - overrides List<Property Map>
- Any parameters that you specify override the same parameters in the launch template.
SpotFleetLaunchTemplateOverrides
- Availability
Zone string - The Availability Zone in which to launch the instances.
- Instance
Requirements Pulumi.Aws Native. Ec2. Inputs. Spot Fleet Instance Requirements Request The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- Instance
Type string - The instance type.
- Priority double
The priority for the launch template override. The highest priority is launched first.
If
OnDemandAllocationStrategy
is set toprioritized
, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.If the Spot
AllocationStrategy
is set tocapacityOptimizedPrioritized
, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.Valid values are whole numbers starting at
0
. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.- Spot
Price string The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- Subnet
Id string - The ID of the subnet in which to launch the instances.
- Weighted
Capacity double The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
- Availability
Zone string - The Availability Zone in which to launch the instances.
- Instance
Requirements SpotFleet Instance Requirements Request The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- Instance
Type string - The instance type.
- Priority float64
The priority for the launch template override. The highest priority is launched first.
If
OnDemandAllocationStrategy
is set toprioritized
, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.If the Spot
AllocationStrategy
is set tocapacityOptimizedPrioritized
, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.Valid values are whole numbers starting at
0
. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.- Spot
Price string The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- Subnet
Id string - The ID of the subnet in which to launch the instances.
- Weighted
Capacity float64 The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
- availability
Zone String - The Availability Zone in which to launch the instances.
- instance
Requirements SpotFleet Instance Requirements Request The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- instance
Type String - The instance type.
- priority Double
The priority for the launch template override. The highest priority is launched first.
If
OnDemandAllocationStrategy
is set toprioritized
, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.If the Spot
AllocationStrategy
is set tocapacityOptimizedPrioritized
, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.Valid values are whole numbers starting at
0
. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.- spot
Price String The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- subnet
Id String - The ID of the subnet in which to launch the instances.
- weighted
Capacity Double The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
- availability
Zone string - The Availability Zone in which to launch the instances.
- instance
Requirements SpotFleet Instance Requirements Request The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- instance
Type string - The instance type.
- priority number
The priority for the launch template override. The highest priority is launched first.
If
OnDemandAllocationStrategy
is set toprioritized
, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.If the Spot
AllocationStrategy
is set tocapacityOptimizedPrioritized
, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.Valid values are whole numbers starting at
0
. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.- spot
Price string The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- subnet
Id string - The ID of the subnet in which to launch the instances.
- weighted
Capacity number The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
- availability_
zone str - The Availability Zone in which to launch the instances.
- instance_
requirements SpotFleet Instance Requirements Request The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- instance_
type str - The instance type.
- priority float
The priority for the launch template override. The highest priority is launched first.
If
OnDemandAllocationStrategy
is set toprioritized
, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.If the Spot
AllocationStrategy
is set tocapacityOptimizedPrioritized
, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.Valid values are whole numbers starting at
0
. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.- spot_
price str The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- subnet_
id str - The ID of the subnet in which to launch the instances.
- weighted_
capacity float The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
- availability
Zone String - The Availability Zone in which to launch the instances.
- instance
Requirements Property Map The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.
If you specify
InstanceRequirements
, you can't specifyInstanceType
.- instance
Type String - The instance type.
- priority Number
The priority for the launch template override. The highest priority is launched first.
If
OnDemandAllocationStrategy
is set toprioritized
, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.If the Spot
AllocationStrategy
is set tocapacityOptimizedPrioritized
, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.Valid values are whole numbers starting at
0
. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.- spot
Price String The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- subnet
Id String - The ID of the subnet in which to launch the instances.
- weighted
Capacity Number The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowestPrice
andpriceCapacityOptimized
allocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity
, resulting in only 1 instance being launched, the price used is per instance hour.
SpotFleetLoadBalancersConfig
- Classic
Load Pulumi.Balancers Config Aws Native. Ec2. Inputs. Spot Fleet Classic Load Balancers Config - The Classic Load Balancers.
- Target
Groups Pulumi.Config Aws Native. Ec2. Inputs. Spot Fleet Target Groups Config - The target groups.
- Classic
Load SpotBalancers Config Fleet Classic Load Balancers Config - The Classic Load Balancers.
- Target
Groups SpotConfig Fleet Target Groups Config - The target groups.
- classic
Load SpotBalancers Config Fleet Classic Load Balancers Config - The Classic Load Balancers.
- target
Groups SpotConfig Fleet Target Groups Config - The target groups.
- classic
Load SpotBalancers Config Fleet Classic Load Balancers Config - The Classic Load Balancers.
- target
Groups SpotConfig Fleet Target Groups Config - The target groups.
- classic_
load_ Spotbalancers_ config Fleet Classic Load Balancers Config - The Classic Load Balancers.
- target_
groups_ Spotconfig Fleet Target Groups Config - The target groups.
- classic
Load Property MapBalancers Config - The Classic Load Balancers.
- target
Groups Property MapConfig - The target groups.
SpotFleetMemoryGiBPerVCpuRequest
SpotFleetMemoryMiBRequest
SpotFleetMonitoring
- Enabled bool
Enables monitoring for the instance.
Default:
false
- Enabled bool
Enables monitoring for the instance.
Default:
false
- enabled Boolean
Enables monitoring for the instance.
Default:
false
- enabled boolean
Enables monitoring for the instance.
Default:
false
- enabled bool
Enables monitoring for the instance.
Default:
false
- enabled Boolean
Enables monitoring for the instance.
Default:
false
SpotFleetNetworkBandwidthGbpsRequest
SpotFleetNetworkInterfaceCountRequest
SpotFleetPrivateIpAddressSpecification
- Private
Ip stringAddress - The private IPv4 address.
- Primary bool
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- Private
Ip stringAddress - The private IPv4 address.
- Primary bool
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- private
Ip StringAddress - The private IPv4 address.
- primary Boolean
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- private
Ip stringAddress - The private IPv4 address.
- primary boolean
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- private_
ip_ straddress - The private IPv4 address.
- primary bool
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- private
Ip StringAddress - The private IPv4 address.
- primary Boolean
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
SpotFleetRequestConfigData
- Iam
Fleet stringRole - The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that grants the Spot Fleet the permission to request, launch, terminate, and tag instances on your behalf. For more information, see Spot Fleet Prerequisites in the Amazon EC2 User Guide . Spot Fleet can terminate Spot Instances on your behalf when you cancel its Spot Fleet request or when the Spot Fleet request expires, if you set
TerminateInstancesWithExpiration
. - Target
Capacity int - The number of units to request for the Spot Fleet. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - Allocation
Strategy Pulumi.Aws Native. Ec2. Spot Fleet Request Config Data Allocation Strategy The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the Spot Fleet launch configuration. For more information, see Allocation strategies for Spot Instances in the Amazon EC2 User Guide .
- priceCapacityOptimized (recommended) - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. Spot Fleet then requests Spot Instances from the lowest priced of these pools.
- capacityOptimized - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. To give certain instance types a higher chance of launching first, use
capacityOptimizedPrioritized
. Set a priority for each instance type by using thePriority
parameter forLaunchTemplateOverrides
. You can assign the same priority to differentLaunchTemplateOverrides
. EC2 implements the priorities on a best-effort basis, but optimizes for capacity first.capacityOptimizedPrioritized
is supported only if your Spot Fleet uses a launch template. Note that if theOnDemandAllocationStrategy
is set toprioritized
, the same priority is applied when fulfilling On-Demand capacity. - diversified - Spot Fleet requests instances from all of the Spot Instance pools that you specify.
- lowestPrice (not recommended) - > We don't recommend the
lowestPrice
allocation strategy because it has the highest risk of interruption for your Spot Instances.
Spot Fleet requests instances from the lowest priced Spot Instance pool that has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances come from the next lowest priced pool that has available capacity. If a pool runs out of capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your request by drawing from the next lowest priced pool. To ensure that your desired capacity is met, you might receive Spot Instances from several pools. Because this strategy only considers instance price and not capacity availability, it might lead to high interruption rates.
Default:
lowestPrice
- Context string
- Reserved.
- Excess
Capacity Pulumi.Termination Policy Aws Native. Ec2. Spot Fleet Request Config Data Excess Capacity Termination Policy Indicates whether running Spot Instances should be terminated if you decrease the target capacity of the Spot Fleet request below the current size of the Spot Fleet.
Supported only for fleets of type
maintain
.- Instance
Interruption Pulumi.Behavior Aws Native. Ec2. Spot Fleet Request Config Data Instance Interruption Behavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - Instance
Pools intTo Use Count The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot AllocationStrategy is set to
lowest-price
. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.Note that Spot Fleet attempts to draw Spot Instances from the number of pools that you specify on a best effort basis. If a pool runs out of Spot capacity before fulfilling your target capacity, Spot Fleet will continue to fulfill your request by drawing from the next cheapest pool. To ensure that your target capacity is met, you might receive Spot Instances from more than the number of pools that you specified. Similarly, if most of the pools have no Spot capacity, you might receive your full target capacity from fewer than the number of pools that you specified.
- Launch
Specifications List<Pulumi.Aws Native. Ec2. Inputs. Spot Fleet Launch Specification> - The launch specifications for the Spot Fleet request. If you specify
LaunchSpecifications
, you can't specifyLaunchTemplateConfigs
. - Launch
Template List<Pulumi.Configs Aws Native. Ec2. Inputs. Spot Fleet Launch Template Config> - The launch template and overrides. If you specify
LaunchTemplateConfigs
, you can't specifyLaunchSpecifications
. - Load
Balancers Pulumi.Config Aws Native. Ec2. Inputs. Spot Fleet Load Balancers Config 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.
With Network Load Balancers, Spot Fleet cannot register instances that have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1.
- On
Demand stringAllocation Strategy - The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowestPrice
, Spot Fleet uses price to determine the order, launching the lowest price first. If you specifyprioritized
, Spot Fleet uses the priority that you assign to each Spot Fleet launch template override, launching the highest priority first. If you do not specify a value, Spot Fleet defaults tolowestPrice
. - On
Demand stringMax Total Price The maximum amount per hour for On-Demand Instances that you're willing to pay. You can use the
onDemandMaxTotalPrice
parameter, thespotMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. TheonDemandMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified foronDemandMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- On
Demand intTarget Capacity - The number of On-Demand units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - Replace
Unhealthy boolInstances - Indicates whether Spot Fleet should replace unhealthy instances.
- Spot
Maintenance Pulumi.Strategies Aws Native. Ec2. Inputs. Spot Fleet Spot Maintenance Strategies - The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
- Spot
Max stringTotal Price The maximum amount per hour for Spot Instances that you're willing to pay. You can use the
spotMaxTotalPrice
parameter, theonDemandMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. ThespotMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified forspotMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- Spot
Price string The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- List<Pulumi.
Aws Native. Ec2. Inputs. Spot Fleet Tag Specification> - The key-value pair for tagging the Spot Fleet request on creation. The value for
ResourceType
must bespot-fleet-request
, otherwise the Spot Fleet request fails. To tag instances at launch, specify the tags in the launch template (valid only if you useLaunchTemplateConfigs
) or in the[SpotFleetTagSpecification](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetTagSpecification.html)
(valid only if you useLaunchSpecifications
). For information about tagging after launch, see Tag your resources . - Target
Capacity Pulumi.Unit Type Aws Native. Ec2. Spot Fleet Request Config Data Target Capacity Unit Type The unit for the target capacity. You can specify this parameter only when using attribute-based instance type selection.
Default:
units
(the number of instances)- Terminate
Instances boolWith Expiration - Indicates whether running Spot Instances are terminated when the Spot Fleet request expires.
- Type
Pulumi.
Aws Native. Ec2. Spot Fleet Request Config Data Type - The type of request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. When this value is
request
, the Spot Fleet only places the required requests. It does not attempt to replenish Spot Instances if capacity is diminished, nor does it submit requests in alternative Spot pools if capacity is not available. When this value ismaintain
, the Spot Fleet maintains the target capacity. The Spot Fleet places the required requests to meet capacity and automatically replenishes any interrupted instances. Default:maintain
.instant
is listed but is not used by Spot Fleet. - Valid
From string - The start date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). By default, Amazon EC2 starts fulfilling the request immediately.
- Valid
Until string - The end date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). After the end date and time, no new Spot Instance requests are placed or able to fulfill the request. If no value is specified, the Spot Fleet request remains until you cancel it.
- Iam
Fleet stringRole - The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that grants the Spot Fleet the permission to request, launch, terminate, and tag instances on your behalf. For more information, see Spot Fleet Prerequisites in the Amazon EC2 User Guide . Spot Fleet can terminate Spot Instances on your behalf when you cancel its Spot Fleet request or when the Spot Fleet request expires, if you set
TerminateInstancesWithExpiration
. - Target
Capacity int - The number of units to request for the Spot Fleet. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - Allocation
Strategy SpotFleet Request Config Data Allocation Strategy The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the Spot Fleet launch configuration. For more information, see Allocation strategies for Spot Instances in the Amazon EC2 User Guide .
- priceCapacityOptimized (recommended) - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. Spot Fleet then requests Spot Instances from the lowest priced of these pools.
- capacityOptimized - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. To give certain instance types a higher chance of launching first, use
capacityOptimizedPrioritized
. Set a priority for each instance type by using thePriority
parameter forLaunchTemplateOverrides
. You can assign the same priority to differentLaunchTemplateOverrides
. EC2 implements the priorities on a best-effort basis, but optimizes for capacity first.capacityOptimizedPrioritized
is supported only if your Spot Fleet uses a launch template. Note that if theOnDemandAllocationStrategy
is set toprioritized
, the same priority is applied when fulfilling On-Demand capacity. - diversified - Spot Fleet requests instances from all of the Spot Instance pools that you specify.
- lowestPrice (not recommended) - > We don't recommend the
lowestPrice
allocation strategy because it has the highest risk of interruption for your Spot Instances.
Spot Fleet requests instances from the lowest priced Spot Instance pool that has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances come from the next lowest priced pool that has available capacity. If a pool runs out of capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your request by drawing from the next lowest priced pool. To ensure that your desired capacity is met, you might receive Spot Instances from several pools. Because this strategy only considers instance price and not capacity availability, it might lead to high interruption rates.
Default:
lowestPrice
- Context string
- Reserved.
- Excess
Capacity SpotTermination Policy Fleet Request Config Data Excess Capacity Termination Policy Indicates whether running Spot Instances should be terminated if you decrease the target capacity of the Spot Fleet request below the current size of the Spot Fleet.
Supported only for fleets of type
maintain
.- Instance
Interruption SpotBehavior Fleet Request Config Data Instance Interruption Behavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - Instance
Pools intTo Use Count The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot AllocationStrategy is set to
lowest-price
. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.Note that Spot Fleet attempts to draw Spot Instances from the number of pools that you specify on a best effort basis. If a pool runs out of Spot capacity before fulfilling your target capacity, Spot Fleet will continue to fulfill your request by drawing from the next cheapest pool. To ensure that your target capacity is met, you might receive Spot Instances from more than the number of pools that you specified. Similarly, if most of the pools have no Spot capacity, you might receive your full target capacity from fewer than the number of pools that you specified.
- Launch
Specifications []SpotFleet Launch Specification - The launch specifications for the Spot Fleet request. If you specify
LaunchSpecifications
, you can't specifyLaunchTemplateConfigs
. - Launch
Template []SpotConfigs Fleet Launch Template Config - The launch template and overrides. If you specify
LaunchTemplateConfigs
, you can't specifyLaunchSpecifications
. - Load
Balancers SpotConfig Fleet Load Balancers Config 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.
With Network Load Balancers, Spot Fleet cannot register instances that have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1.
- On
Demand stringAllocation Strategy - The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowestPrice
, Spot Fleet uses price to determine the order, launching the lowest price first. If you specifyprioritized
, Spot Fleet uses the priority that you assign to each Spot Fleet launch template override, launching the highest priority first. If you do not specify a value, Spot Fleet defaults tolowestPrice
. - On
Demand stringMax Total Price The maximum amount per hour for On-Demand Instances that you're willing to pay. You can use the
onDemandMaxTotalPrice
parameter, thespotMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. TheonDemandMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified foronDemandMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- On
Demand intTarget Capacity - The number of On-Demand units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - Replace
Unhealthy boolInstances - Indicates whether Spot Fleet should replace unhealthy instances.
- Spot
Maintenance SpotStrategies Fleet Spot Maintenance Strategies - The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
- Spot
Max stringTotal Price The maximum amount per hour for Spot Instances that you're willing to pay. You can use the
spotMaxTotalPrice
parameter, theonDemandMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. ThespotMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified forspotMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- Spot
Price string The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- []Spot
Fleet Tag Specification - The key-value pair for tagging the Spot Fleet request on creation. The value for
ResourceType
must bespot-fleet-request
, otherwise the Spot Fleet request fails. To tag instances at launch, specify the tags in the launch template (valid only if you useLaunchTemplateConfigs
) or in the[SpotFleetTagSpecification](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetTagSpecification.html)
(valid only if you useLaunchSpecifications
). For information about tagging after launch, see Tag your resources . - Target
Capacity SpotUnit Type Fleet Request Config Data Target Capacity Unit Type The unit for the target capacity. You can specify this parameter only when using attribute-based instance type selection.
Default:
units
(the number of instances)- Terminate
Instances boolWith Expiration - Indicates whether running Spot Instances are terminated when the Spot Fleet request expires.
- Type
Spot
Fleet Request Config Data Type - The type of request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. When this value is
request
, the Spot Fleet only places the required requests. It does not attempt to replenish Spot Instances if capacity is diminished, nor does it submit requests in alternative Spot pools if capacity is not available. When this value ismaintain
, the Spot Fleet maintains the target capacity. The Spot Fleet places the required requests to meet capacity and automatically replenishes any interrupted instances. Default:maintain
.instant
is listed but is not used by Spot Fleet. - Valid
From string - The start date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). By default, Amazon EC2 starts fulfilling the request immediately.
- Valid
Until string - The end date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). After the end date and time, no new Spot Instance requests are placed or able to fulfill the request. If no value is specified, the Spot Fleet request remains until you cancel it.
- iam
Fleet StringRole - The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that grants the Spot Fleet the permission to request, launch, terminate, and tag instances on your behalf. For more information, see Spot Fleet Prerequisites in the Amazon EC2 User Guide . Spot Fleet can terminate Spot Instances on your behalf when you cancel its Spot Fleet request or when the Spot Fleet request expires, if you set
TerminateInstancesWithExpiration
. - target
Capacity Integer - The number of units to request for the Spot Fleet. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - allocation
Strategy SpotFleet Request Config Data Allocation Strategy The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the Spot Fleet launch configuration. For more information, see Allocation strategies for Spot Instances in the Amazon EC2 User Guide .
- priceCapacityOptimized (recommended) - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. Spot Fleet then requests Spot Instances from the lowest priced of these pools.
- capacityOptimized - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. To give certain instance types a higher chance of launching first, use
capacityOptimizedPrioritized
. Set a priority for each instance type by using thePriority
parameter forLaunchTemplateOverrides
. You can assign the same priority to differentLaunchTemplateOverrides
. EC2 implements the priorities on a best-effort basis, but optimizes for capacity first.capacityOptimizedPrioritized
is supported only if your Spot Fleet uses a launch template. Note that if theOnDemandAllocationStrategy
is set toprioritized
, the same priority is applied when fulfilling On-Demand capacity. - diversified - Spot Fleet requests instances from all of the Spot Instance pools that you specify.
- lowestPrice (not recommended) - > We don't recommend the
lowestPrice
allocation strategy because it has the highest risk of interruption for your Spot Instances.
Spot Fleet requests instances from the lowest priced Spot Instance pool that has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances come from the next lowest priced pool that has available capacity. If a pool runs out of capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your request by drawing from the next lowest priced pool. To ensure that your desired capacity is met, you might receive Spot Instances from several pools. Because this strategy only considers instance price and not capacity availability, it might lead to high interruption rates.
Default:
lowestPrice
- context String
- Reserved.
- excess
Capacity SpotTermination Policy Fleet Request Config Data Excess Capacity Termination Policy Indicates whether running Spot Instances should be terminated if you decrease the target capacity of the Spot Fleet request below the current size of the Spot Fleet.
Supported only for fleets of type
maintain
.- instance
Interruption SpotBehavior Fleet Request Config Data Instance Interruption Behavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - instance
Pools IntegerTo Use Count The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot AllocationStrategy is set to
lowest-price
. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.Note that Spot Fleet attempts to draw Spot Instances from the number of pools that you specify on a best effort basis. If a pool runs out of Spot capacity before fulfilling your target capacity, Spot Fleet will continue to fulfill your request by drawing from the next cheapest pool. To ensure that your target capacity is met, you might receive Spot Instances from more than the number of pools that you specified. Similarly, if most of the pools have no Spot capacity, you might receive your full target capacity from fewer than the number of pools that you specified.
- launch
Specifications List<SpotFleet Launch Specification> - The launch specifications for the Spot Fleet request. If you specify
LaunchSpecifications
, you can't specifyLaunchTemplateConfigs
. - launch
Template List<SpotConfigs Fleet Launch Template Config> - The launch template and overrides. If you specify
LaunchTemplateConfigs
, you can't specifyLaunchSpecifications
. - load
Balancers SpotConfig Fleet Load Balancers Config 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.
With Network Load Balancers, Spot Fleet cannot register instances that have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1.
- on
Demand StringAllocation Strategy - The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowestPrice
, Spot Fleet uses price to determine the order, launching the lowest price first. If you specifyprioritized
, Spot Fleet uses the priority that you assign to each Spot Fleet launch template override, launching the highest priority first. If you do not specify a value, Spot Fleet defaults tolowestPrice
. - on
Demand StringMax Total Price The maximum amount per hour for On-Demand Instances that you're willing to pay. You can use the
onDemandMaxTotalPrice
parameter, thespotMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. TheonDemandMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified foronDemandMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- on
Demand IntegerTarget Capacity - The number of On-Demand units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - replace
Unhealthy BooleanInstances - Indicates whether Spot Fleet should replace unhealthy instances.
- spot
Maintenance SpotStrategies Fleet Spot Maintenance Strategies - The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
- spot
Max StringTotal Price The maximum amount per hour for Spot Instances that you're willing to pay. You can use the
spotMaxTotalPrice
parameter, theonDemandMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. ThespotMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified forspotMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- spot
Price String The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- List<Spot
Fleet Tag Specification> - The key-value pair for tagging the Spot Fleet request on creation. The value for
ResourceType
must bespot-fleet-request
, otherwise the Spot Fleet request fails. To tag instances at launch, specify the tags in the launch template (valid only if you useLaunchTemplateConfigs
) or in the[SpotFleetTagSpecification](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetTagSpecification.html)
(valid only if you useLaunchSpecifications
). For information about tagging after launch, see Tag your resources . - target
Capacity SpotUnit Type Fleet Request Config Data Target Capacity Unit Type The unit for the target capacity. You can specify this parameter only when using attribute-based instance type selection.
Default:
units
(the number of instances)- terminate
Instances BooleanWith Expiration - Indicates whether running Spot Instances are terminated when the Spot Fleet request expires.
- type
Spot
Fleet Request Config Data Type - The type of request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. When this value is
request
, the Spot Fleet only places the required requests. It does not attempt to replenish Spot Instances if capacity is diminished, nor does it submit requests in alternative Spot pools if capacity is not available. When this value ismaintain
, the Spot Fleet maintains the target capacity. The Spot Fleet places the required requests to meet capacity and automatically replenishes any interrupted instances. Default:maintain
.instant
is listed but is not used by Spot Fleet. - valid
From String - The start date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). By default, Amazon EC2 starts fulfilling the request immediately.
- valid
Until String - The end date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). After the end date and time, no new Spot Instance requests are placed or able to fulfill the request. If no value is specified, the Spot Fleet request remains until you cancel it.
- iam
Fleet stringRole - The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that grants the Spot Fleet the permission to request, launch, terminate, and tag instances on your behalf. For more information, see Spot Fleet Prerequisites in the Amazon EC2 User Guide . Spot Fleet can terminate Spot Instances on your behalf when you cancel its Spot Fleet request or when the Spot Fleet request expires, if you set
TerminateInstancesWithExpiration
. - target
Capacity number - The number of units to request for the Spot Fleet. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - allocation
Strategy SpotFleet Request Config Data Allocation Strategy The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the Spot Fleet launch configuration. For more information, see Allocation strategies for Spot Instances in the Amazon EC2 User Guide .
- priceCapacityOptimized (recommended) - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. Spot Fleet then requests Spot Instances from the lowest priced of these pools.
- capacityOptimized - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. To give certain instance types a higher chance of launching first, use
capacityOptimizedPrioritized
. Set a priority for each instance type by using thePriority
parameter forLaunchTemplateOverrides
. You can assign the same priority to differentLaunchTemplateOverrides
. EC2 implements the priorities on a best-effort basis, but optimizes for capacity first.capacityOptimizedPrioritized
is supported only if your Spot Fleet uses a launch template. Note that if theOnDemandAllocationStrategy
is set toprioritized
, the same priority is applied when fulfilling On-Demand capacity. - diversified - Spot Fleet requests instances from all of the Spot Instance pools that you specify.
- lowestPrice (not recommended) - > We don't recommend the
lowestPrice
allocation strategy because it has the highest risk of interruption for your Spot Instances.
Spot Fleet requests instances from the lowest priced Spot Instance pool that has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances come from the next lowest priced pool that has available capacity. If a pool runs out of capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your request by drawing from the next lowest priced pool. To ensure that your desired capacity is met, you might receive Spot Instances from several pools. Because this strategy only considers instance price and not capacity availability, it might lead to high interruption rates.
Default:
lowestPrice
- context string
- Reserved.
- excess
Capacity SpotTermination Policy Fleet Request Config Data Excess Capacity Termination Policy Indicates whether running Spot Instances should be terminated if you decrease the target capacity of the Spot Fleet request below the current size of the Spot Fleet.
Supported only for fleets of type
maintain
.- instance
Interruption SpotBehavior Fleet Request Config Data Instance Interruption Behavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - instance
Pools numberTo Use Count The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot AllocationStrategy is set to
lowest-price
. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.Note that Spot Fleet attempts to draw Spot Instances from the number of pools that you specify on a best effort basis. If a pool runs out of Spot capacity before fulfilling your target capacity, Spot Fleet will continue to fulfill your request by drawing from the next cheapest pool. To ensure that your target capacity is met, you might receive Spot Instances from more than the number of pools that you specified. Similarly, if most of the pools have no Spot capacity, you might receive your full target capacity from fewer than the number of pools that you specified.
- launch
Specifications SpotFleet Launch Specification[] - The launch specifications for the Spot Fleet request. If you specify
LaunchSpecifications
, you can't specifyLaunchTemplateConfigs
. - launch
Template SpotConfigs Fleet Launch Template Config[] - The launch template and overrides. If you specify
LaunchTemplateConfigs
, you can't specifyLaunchSpecifications
. - load
Balancers SpotConfig Fleet Load Balancers Config 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.
With Network Load Balancers, Spot Fleet cannot register instances that have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1.
- on
Demand stringAllocation Strategy - The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowestPrice
, Spot Fleet uses price to determine the order, launching the lowest price first. If you specifyprioritized
, Spot Fleet uses the priority that you assign to each Spot Fleet launch template override, launching the highest priority first. If you do not specify a value, Spot Fleet defaults tolowestPrice
. - on
Demand stringMax Total Price The maximum amount per hour for On-Demand Instances that you're willing to pay. You can use the
onDemandMaxTotalPrice
parameter, thespotMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. TheonDemandMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified foronDemandMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- on
Demand numberTarget Capacity - The number of On-Demand units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - replace
Unhealthy booleanInstances - Indicates whether Spot Fleet should replace unhealthy instances.
- spot
Maintenance SpotStrategies Fleet Spot Maintenance Strategies - The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
- spot
Max stringTotal Price The maximum amount per hour for Spot Instances that you're willing to pay. You can use the
spotMaxTotalPrice
parameter, theonDemandMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. ThespotMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified forspotMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- spot
Price string The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- Spot
Fleet Tag Specification[] - The key-value pair for tagging the Spot Fleet request on creation. The value for
ResourceType
must bespot-fleet-request
, otherwise the Spot Fleet request fails. To tag instances at launch, specify the tags in the launch template (valid only if you useLaunchTemplateConfigs
) or in the[SpotFleetTagSpecification](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetTagSpecification.html)
(valid only if you useLaunchSpecifications
). For information about tagging after launch, see Tag your resources . - target
Capacity SpotUnit Type Fleet Request Config Data Target Capacity Unit Type The unit for the target capacity. You can specify this parameter only when using attribute-based instance type selection.
Default:
units
(the number of instances)- terminate
Instances booleanWith Expiration - Indicates whether running Spot Instances are terminated when the Spot Fleet request expires.
- type
Spot
Fleet Request Config Data Type - The type of request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. When this value is
request
, the Spot Fleet only places the required requests. It does not attempt to replenish Spot Instances if capacity is diminished, nor does it submit requests in alternative Spot pools if capacity is not available. When this value ismaintain
, the Spot Fleet maintains the target capacity. The Spot Fleet places the required requests to meet capacity and automatically replenishes any interrupted instances. Default:maintain
.instant
is listed but is not used by Spot Fleet. - valid
From string - The start date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). By default, Amazon EC2 starts fulfilling the request immediately.
- valid
Until string - The end date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). After the end date and time, no new Spot Instance requests are placed or able to fulfill the request. If no value is specified, the Spot Fleet request remains until you cancel it.
- iam_
fleet_ strrole - The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that grants the Spot Fleet the permission to request, launch, terminate, and tag instances on your behalf. For more information, see Spot Fleet Prerequisites in the Amazon EC2 User Guide . Spot Fleet can terminate Spot Instances on your behalf when you cancel its Spot Fleet request or when the Spot Fleet request expires, if you set
TerminateInstancesWithExpiration
. - target_
capacity int - The number of units to request for the Spot Fleet. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - allocation_
strategy SpotFleet Request Config Data Allocation Strategy The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the Spot Fleet launch configuration. For more information, see Allocation strategies for Spot Instances in the Amazon EC2 User Guide .
- priceCapacityOptimized (recommended) - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. Spot Fleet then requests Spot Instances from the lowest priced of these pools.
- capacityOptimized - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. To give certain instance types a higher chance of launching first, use
capacityOptimizedPrioritized
. Set a priority for each instance type by using thePriority
parameter forLaunchTemplateOverrides
. You can assign the same priority to differentLaunchTemplateOverrides
. EC2 implements the priorities on a best-effort basis, but optimizes for capacity first.capacityOptimizedPrioritized
is supported only if your Spot Fleet uses a launch template. Note that if theOnDemandAllocationStrategy
is set toprioritized
, the same priority is applied when fulfilling On-Demand capacity. - diversified - Spot Fleet requests instances from all of the Spot Instance pools that you specify.
- lowestPrice (not recommended) - > We don't recommend the
lowestPrice
allocation strategy because it has the highest risk of interruption for your Spot Instances.
Spot Fleet requests instances from the lowest priced Spot Instance pool that has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances come from the next lowest priced pool that has available capacity. If a pool runs out of capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your request by drawing from the next lowest priced pool. To ensure that your desired capacity is met, you might receive Spot Instances from several pools. Because this strategy only considers instance price and not capacity availability, it might lead to high interruption rates.
Default:
lowestPrice
- context str
- Reserved.
- excess_
capacity_ Spottermination_ policy Fleet Request Config Data Excess Capacity Termination Policy Indicates whether running Spot Instances should be terminated if you decrease the target capacity of the Spot Fleet request below the current size of the Spot Fleet.
Supported only for fleets of type
maintain
.- instance_
interruption_ Spotbehavior Fleet Request Config Data Instance Interruption Behavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - instance_
pools_ intto_ use_ count The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot AllocationStrategy is set to
lowest-price
. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.Note that Spot Fleet attempts to draw Spot Instances from the number of pools that you specify on a best effort basis. If a pool runs out of Spot capacity before fulfilling your target capacity, Spot Fleet will continue to fulfill your request by drawing from the next cheapest pool. To ensure that your target capacity is met, you might receive Spot Instances from more than the number of pools that you specified. Similarly, if most of the pools have no Spot capacity, you might receive your full target capacity from fewer than the number of pools that you specified.
- launch_
specifications Sequence[SpotFleet Launch Specification] - The launch specifications for the Spot Fleet request. If you specify
LaunchSpecifications
, you can't specifyLaunchTemplateConfigs
. - launch_
template_ Sequence[Spotconfigs Fleet Launch Template Config] - The launch template and overrides. If you specify
LaunchTemplateConfigs
, you can't specifyLaunchSpecifications
. - load_
balancers_ Spotconfig Fleet Load Balancers Config 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.
With Network Load Balancers, Spot Fleet cannot register instances that have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1.
- on_
demand_ strallocation_ strategy - The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowestPrice
, Spot Fleet uses price to determine the order, launching the lowest price first. If you specifyprioritized
, Spot Fleet uses the priority that you assign to each Spot Fleet launch template override, launching the highest priority first. If you do not specify a value, Spot Fleet defaults tolowestPrice
. - on_
demand_ strmax_ total_ price The maximum amount per hour for On-Demand Instances that you're willing to pay. You can use the
onDemandMaxTotalPrice
parameter, thespotMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. TheonDemandMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified foronDemandMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- on_
demand_ inttarget_ capacity - The number of On-Demand units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - replace_
unhealthy_ boolinstances - Indicates whether Spot Fleet should replace unhealthy instances.
- spot_
maintenance_ Spotstrategies Fleet Spot Maintenance Strategies - The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
- spot_
max_ strtotal_ price The maximum amount per hour for Spot Instances that you're willing to pay. You can use the
spotMaxTotalPrice
parameter, theonDemandMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. ThespotMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified forspotMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- spot_
price str The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- tag_
specifications Sequence[SpotFleet Tag Specification] - The key-value pair for tagging the Spot Fleet request on creation. The value for
ResourceType
must bespot-fleet-request
, otherwise the Spot Fleet request fails. To tag instances at launch, specify the tags in the launch template (valid only if you useLaunchTemplateConfigs
) or in the[SpotFleetTagSpecification](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetTagSpecification.html)
(valid only if you useLaunchSpecifications
). For information about tagging after launch, see Tag your resources . - target_
capacity_ Spotunit_ type Fleet Request Config Data Target Capacity Unit Type The unit for the target capacity. You can specify this parameter only when using attribute-based instance type selection.
Default:
units
(the number of instances)- terminate_
instances_ boolwith_ expiration - Indicates whether running Spot Instances are terminated when the Spot Fleet request expires.
- type
Spot
Fleet Request Config Data Type - The type of request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. When this value is
request
, the Spot Fleet only places the required requests. It does not attempt to replenish Spot Instances if capacity is diminished, nor does it submit requests in alternative Spot pools if capacity is not available. When this value ismaintain
, the Spot Fleet maintains the target capacity. The Spot Fleet places the required requests to meet capacity and automatically replenishes any interrupted instances. Default:maintain
.instant
is listed but is not used by Spot Fleet. - valid_
from str - The start date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). By default, Amazon EC2 starts fulfilling the request immediately.
- valid_
until str - The end date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). After the end date and time, no new Spot Instance requests are placed or able to fulfill the request. If no value is specified, the Spot Fleet request remains until you cancel it.
- iam
Fleet StringRole - The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that grants the Spot Fleet the permission to request, launch, terminate, and tag instances on your behalf. For more information, see Spot Fleet Prerequisites in the Amazon EC2 User Guide . Spot Fleet can terminate Spot Instances on your behalf when you cancel its Spot Fleet request or when the Spot Fleet request expires, if you set
TerminateInstancesWithExpiration
. - target
Capacity Number - The number of units to request for the Spot Fleet. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - allocation
Strategy "capacityOptimized" | "capacity Optimized Prioritized" | "diversified" | "lowest Price" | "price Capacity Optimized" The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the Spot Fleet launch configuration. For more information, see Allocation strategies for Spot Instances in the Amazon EC2 User Guide .
- priceCapacityOptimized (recommended) - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. Spot Fleet then requests Spot Instances from the lowest priced of these pools.
- capacityOptimized - Spot Fleet identifies the pools with the highest capacity availability for the number of instances that are launching. This means that we will request Spot Instances from the pools that we believe have the lowest chance of interruption in the near term. To give certain instance types a higher chance of launching first, use
capacityOptimizedPrioritized
. Set a priority for each instance type by using thePriority
parameter forLaunchTemplateOverrides
. You can assign the same priority to differentLaunchTemplateOverrides
. EC2 implements the priorities on a best-effort basis, but optimizes for capacity first.capacityOptimizedPrioritized
is supported only if your Spot Fleet uses a launch template. Note that if theOnDemandAllocationStrategy
is set toprioritized
, the same priority is applied when fulfilling On-Demand capacity. - diversified - Spot Fleet requests instances from all of the Spot Instance pools that you specify.
- lowestPrice (not recommended) - > We don't recommend the
lowestPrice
allocation strategy because it has the highest risk of interruption for your Spot Instances.
Spot Fleet requests instances from the lowest priced Spot Instance pool that has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances come from the next lowest priced pool that has available capacity. If a pool runs out of capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your request by drawing from the next lowest priced pool. To ensure that your desired capacity is met, you might receive Spot Instances from several pools. Because this strategy only considers instance price and not capacity availability, it might lead to high interruption rates.
Default:
lowestPrice
- context String
- Reserved.
- excess
Capacity "Default" | "NoTermination Policy Termination" Indicates whether running Spot Instances should be terminated if you decrease the target capacity of the Spot Fleet request below the current size of the Spot Fleet.
Supported only for fleets of type
maintain
.- instance
Interruption "hibernate" | "stop" | "terminate"Behavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - instance
Pools NumberTo Use Count The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot AllocationStrategy is set to
lowest-price
. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.Note that Spot Fleet attempts to draw Spot Instances from the number of pools that you specify on a best effort basis. If a pool runs out of Spot capacity before fulfilling your target capacity, Spot Fleet will continue to fulfill your request by drawing from the next cheapest pool. To ensure that your target capacity is met, you might receive Spot Instances from more than the number of pools that you specified. Similarly, if most of the pools have no Spot capacity, you might receive your full target capacity from fewer than the number of pools that you specified.
- launch
Specifications List<Property Map> - The launch specifications for the Spot Fleet request. If you specify
LaunchSpecifications
, you can't specifyLaunchTemplateConfigs
. - launch
Template List<Property Map>Configs - The launch template and overrides. If you specify
LaunchTemplateConfigs
, you can't specifyLaunchSpecifications
. - load
Balancers Property MapConfig 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.
With Network Load Balancers, Spot Fleet cannot register instances that have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1.
- on
Demand StringAllocation Strategy - The order of the launch template overrides to use in fulfilling On-Demand capacity. If you specify
lowestPrice
, Spot Fleet uses price to determine the order, launching the lowest price first. If you specifyprioritized
, Spot Fleet uses the priority that you assign to each Spot Fleet launch template override, launching the highest priority first. If you do not specify a value, Spot Fleet defaults tolowestPrice
. - on
Demand StringMax Total Price The maximum amount per hour for On-Demand Instances that you're willing to pay. You can use the
onDemandMaxTotalPrice
parameter, thespotMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. TheonDemandMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified foronDemandMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- on
Demand NumberTarget Capacity - The number of On-Demand units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is
maintain
, you can specify a target capacity of 0 and add capacity later. - replace
Unhealthy BooleanInstances - Indicates whether Spot Fleet should replace unhealthy instances.
- spot
Maintenance Property MapStrategies - The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
- spot
Max StringTotal Price The maximum amount per hour for Spot Instances that you're willing to pay. You can use the
spotMaxTotalPrice
parameter, theonDemandMaxTotalPrice
parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. ThespotMaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified forspotMaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- spot
Price String The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.
- List<Property Map>
- The key-value pair for tagging the Spot Fleet request on creation. The value for
ResourceType
must bespot-fleet-request
, otherwise the Spot Fleet request fails. To tag instances at launch, specify the tags in the launch template (valid only if you useLaunchTemplateConfigs
) or in the[SpotFleetTagSpecification](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetTagSpecification.html)
(valid only if you useLaunchSpecifications
). For information about tagging after launch, see Tag your resources . - target
Capacity "vcpu" | "memory-mib" | "units"Unit Type The unit for the target capacity. You can specify this parameter only when using attribute-based instance type selection.
Default:
units
(the number of instances)- terminate
Instances BooleanWith Expiration - Indicates whether running Spot Instances are terminated when the Spot Fleet request expires.
- type "maintain" | "request"
- The type of request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. When this value is
request
, the Spot Fleet only places the required requests. It does not attempt to replenish Spot Instances if capacity is diminished, nor does it submit requests in alternative Spot pools if capacity is not available. When this value ismaintain
, the Spot Fleet maintains the target capacity. The Spot Fleet places the required requests to meet capacity and automatically replenishes any interrupted instances. Default:maintain
.instant
is listed but is not used by Spot Fleet. - valid
From String - The start date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). By default, Amazon EC2 starts fulfilling the request immediately.
- valid
Until String - The end date and time of the request, in UTC format ( YYYY - MM - DD T HH : MM : SS Z). After the end date and time, no new Spot Instance requests are placed or able to fulfill the request. If no value is specified, the Spot Fleet request remains until you cancel it.
SpotFleetRequestConfigDataAllocationStrategy
SpotFleetRequestConfigDataExcessCapacityTerminationPolicy
SpotFleetRequestConfigDataInstanceInterruptionBehavior
SpotFleetRequestConfigDataTargetCapacityUnitType
SpotFleetRequestConfigDataType
SpotFleetSpotCapacityRebalance
- Replacement
Strategy Pulumi.Aws Native. Ec2. Spot Fleet Spot Capacity Rebalance Replacement Strategy The replacement strategy to use. Only available for fleets of type
maintain
.launch
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet. Spot Fleet does not terminate the instances that receive a rebalance notification. You can terminate the old instances, or you can leave them running. You are charged for all instances while they are running.launch-before-terminate
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet, and then, after a delay that you specify (inTerminationDelay
), terminates the instances that received a rebalance notification.- Termination
Delay int The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.
Required when
ReplacementStrategy
is set tolaunch-before-terminate
.Not valid when
ReplacementStrategy
is set tolaunch
.Valid values: Minimum value of
120
seconds. Maximum value of7200
seconds.
- Replacement
Strategy SpotFleet Spot Capacity Rebalance Replacement Strategy The replacement strategy to use. Only available for fleets of type
maintain
.launch
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet. Spot Fleet does not terminate the instances that receive a rebalance notification. You can terminate the old instances, or you can leave them running. You are charged for all instances while they are running.launch-before-terminate
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet, and then, after a delay that you specify (inTerminationDelay
), terminates the instances that received a rebalance notification.- Termination
Delay int The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.
Required when
ReplacementStrategy
is set tolaunch-before-terminate
.Not valid when
ReplacementStrategy
is set tolaunch
.Valid values: Minimum value of
120
seconds. Maximum value of7200
seconds.
- replacement
Strategy SpotFleet Spot Capacity Rebalance Replacement Strategy The replacement strategy to use. Only available for fleets of type
maintain
.launch
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet. Spot Fleet does not terminate the instances that receive a rebalance notification. You can terminate the old instances, or you can leave them running. You are charged for all instances while they are running.launch-before-terminate
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet, and then, after a delay that you specify (inTerminationDelay
), terminates the instances that received a rebalance notification.- termination
Delay Integer The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.
Required when
ReplacementStrategy
is set tolaunch-before-terminate
.Not valid when
ReplacementStrategy
is set tolaunch
.Valid values: Minimum value of
120
seconds. Maximum value of7200
seconds.
- replacement
Strategy SpotFleet Spot Capacity Rebalance Replacement Strategy The replacement strategy to use. Only available for fleets of type
maintain
.launch
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet. Spot Fleet does not terminate the instances that receive a rebalance notification. You can terminate the old instances, or you can leave them running. You are charged for all instances while they are running.launch-before-terminate
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet, and then, after a delay that you specify (inTerminationDelay
), terminates the instances that received a rebalance notification.- termination
Delay number The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.
Required when
ReplacementStrategy
is set tolaunch-before-terminate
.Not valid when
ReplacementStrategy
is set tolaunch
.Valid values: Minimum value of
120
seconds. Maximum value of7200
seconds.
- replacement_
strategy SpotFleet Spot Capacity Rebalance Replacement Strategy The replacement strategy to use. Only available for fleets of type
maintain
.launch
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet. Spot Fleet does not terminate the instances that receive a rebalance notification. You can terminate the old instances, or you can leave them running. You are charged for all instances while they are running.launch-before-terminate
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet, and then, after a delay that you specify (inTerminationDelay
), terminates the instances that received a rebalance notification.- termination_
delay int The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.
Required when
ReplacementStrategy
is set tolaunch-before-terminate
.Not valid when
ReplacementStrategy
is set tolaunch
.Valid values: Minimum value of
120
seconds. Maximum value of7200
seconds.
- replacement
Strategy "launch" | "launch-before-terminate" The replacement strategy to use. Only available for fleets of type
maintain
.launch
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet. Spot Fleet does not terminate the instances that receive a rebalance notification. You can terminate the old instances, or you can leave them running. You are charged for all instances while they are running.launch-before-terminate
- Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet, and then, after a delay that you specify (inTerminationDelay
), terminates the instances that received a rebalance notification.- termination
Delay Number The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.
Required when
ReplacementStrategy
is set tolaunch-before-terminate
.Not valid when
ReplacementStrategy
is set tolaunch
.Valid values: Minimum value of
120
seconds. Maximum value of7200
seconds.
SpotFleetSpotCapacityRebalanceReplacementStrategy
SpotFleetSpotMaintenanceStrategies
- Capacity
Rebalance Pulumi.Aws Native. Ec2. Inputs. Spot Fleet Spot Capacity Rebalance - The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide .
- Capacity
Rebalance SpotFleet Spot Capacity Rebalance - The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide .
- capacity
Rebalance SpotFleet Spot Capacity Rebalance - The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide .
- capacity
Rebalance SpotFleet Spot Capacity Rebalance - The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide .
- capacity_
rebalance SpotFleet Spot Capacity Rebalance - The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide .
- capacity
Rebalance Property Map - The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide .
SpotFleetSpotPlacement
- Availability
Zone string The Availability Zone.
To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
- Group
Name string - The name of the placement group.
- Tenancy
Pulumi.
Aws Native. Ec2. Spot Fleet Spot Placement Tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicated
runs on single-tenant hardware. Thehost
tenancy is not supported for Spot Instances.
- Availability
Zone string The Availability Zone.
To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
- Group
Name string - The name of the placement group.
- Tenancy
Spot
Fleet Spot Placement Tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicated
runs on single-tenant hardware. Thehost
tenancy is not supported for Spot Instances.
- availability
Zone String The Availability Zone.
To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
- group
Name String - The name of the placement group.
- tenancy
Spot
Fleet Spot Placement Tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicated
runs on single-tenant hardware. Thehost
tenancy is not supported for Spot Instances.
- availability
Zone string The Availability Zone.
To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
- group
Name string - The name of the placement group.
- tenancy
Spot
Fleet Spot Placement Tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicated
runs on single-tenant hardware. Thehost
tenancy is not supported for Spot Instances.
- availability_
zone str The Availability Zone.
To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
- group_
name str - The name of the placement group.
- tenancy
Spot
Fleet Spot Placement Tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicated
runs on single-tenant hardware. Thehost
tenancy is not supported for Spot Instances.
- availability
Zone String The Availability Zone.
To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
- group
Name String - The name of the placement group.
- tenancy "dedicated" | "default" | "host"
- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicated
runs on single-tenant hardware. Thehost
tenancy is not supported for Spot Instances.
SpotFleetSpotPlacementTenancy
SpotFleetTag
SpotFleetTagSpecification
- Resource
Type Pulumi.Aws Native. Ec2. Spot Fleet Tag Specification Resource Type - The type of resource. Currently, the only resource type that is supported is
instance
. To tag the Spot Fleet request on creation, use theTagSpecifications
parameter in[SpotFleetRequestConfigData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html)
. - List<Pulumi.
Aws Native. Ec2. Inputs. Spot Fleet Tag> - The tags.
- Resource
Type SpotFleet Tag Specification Resource Type - The type of resource. Currently, the only resource type that is supported is
instance
. To tag the Spot Fleet request on creation, use theTagSpecifications
parameter in[SpotFleetRequestConfigData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html)
. - []Spot
Fleet Tag - The tags.
- resource
Type SpotFleet Tag Specification Resource Type - The type of resource. Currently, the only resource type that is supported is
instance
. To tag the Spot Fleet request on creation, use theTagSpecifications
parameter in[SpotFleetRequestConfigData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html)
. - List<Spot
Fleet Tag> - The tags.
- resource
Type SpotFleet Tag Specification Resource Type - The type of resource. Currently, the only resource type that is supported is
instance
. To tag the Spot Fleet request on creation, use theTagSpecifications
parameter in[SpotFleetRequestConfigData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html)
. - Spot
Fleet Tag[] - The tags.
- resource_
type SpotFleet Tag Specification Resource Type - The type of resource. Currently, the only resource type that is supported is
instance
. To tag the Spot Fleet request on creation, use theTagSpecifications
parameter in[SpotFleetRequestConfigData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html)
. - Sequence[Spot
Fleet Tag] - The tags.
- resource
Type "client-vpn-endpoint" | "customer-gateway" | "dedicated-host" | "dhcp-options" | "egress-only-internet-gateway" | "elastic-gpu" | "elastic-ip" | "export-image-task" | "export-instance-task" | "fleet" | "fpga-image" | "host-reservation" | "image" | "import-image-task" | "import-snapshot-task" | "instance" | "internet-gateway" | "key-pair" | "launch-template" | "local-gateway-route-table-vpc-association" | "natgateway" | "network-acl" | "network-insights-analysis" | "network-insights-path" | "network-interface" | "placement-group" | "reserved-instances" | "route-table" | "security-group" | "snapshot" | "spot-fleet-request" | "spot-instances-request" | "subnet" | "traffic-mirror-filter" | "traffic-mirror-session" | "traffic-mirror-target" | "transit-gateway" | "transit-gateway-attachment" | "transit-gateway-connect-peer" | "transit-gateway-multicast-domain" | "transit-gateway-route-table" | "volume" | "vpc" | "vpc-flow-log" | "vpc-peering-connection" | "vpn-connection" | "vpn-gateway" - The type of resource. Currently, the only resource type that is supported is
instance
. To tag the Spot Fleet request on creation, use theTagSpecifications
parameter in[SpotFleetRequestConfigData](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetRequestConfigData.html)
. - List<Property Map>
- The tags.
SpotFleetTagSpecificationResourceType
SpotFleetTargetGroup
- Arn string
- The Amazon Resource Name (ARN) of the target group.
- Arn string
- The Amazon Resource Name (ARN) of the target group.
- arn String
- The Amazon Resource Name (ARN) of the target group.
- arn string
- The Amazon Resource Name (ARN) of the target group.
- arn str
- The Amazon Resource Name (ARN) of the target group.
- arn String
- The Amazon Resource Name (ARN) of the target group.
SpotFleetTargetGroupsConfig
- Target
Groups List<Pulumi.Aws Native. Ec2. Inputs. Spot Fleet Target Group> - One or more target groups.
- Target
Groups []SpotFleet Target Group - One or more target groups.
- target
Groups List<SpotFleet Target Group> - One or more target groups.
- target
Groups SpotFleet Target Group[] - One or more target groups.
- target_
groups Sequence[SpotFleet Target Group] - One or more target groups.
- target
Groups List<Property Map> - One or more target groups.
SpotFleetTotalLocalStorageGbRequest
SpotFleetVCpuCountRangeRequest
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.