Skip to content

aws.ec2.describe_spot_fleet_requests

Example SQL Queries

SELECT * FROM
aws.ec2.describe_spot_fleet_requests;

Description

Describes your Spot Fleet requests.

Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

Table Definition

Column NameColumn Data Type
dry_run Input Column

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

BOOLEAN
spot_fleet_request_ids Input Column

The IDs of the Spot Fleet requests.

VARCHAR[]
Show child fields
spot_fleet_request_ids[]
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
activity_status

The progress of the Spot Fleet request. If there is an error, the status is error. After all requests are placed, the status is pending_fulfillment. If the size of the fleet is equal to or greater than its target capacity, the status is fulfilled. If the size of the fleet is decreased, the status is pending_termination while Spot Instances are terminating.

VARCHAR
create_time

The creation date and time of the request.

TIMESTAMP_S
spot_fleet_request_config

The configuration of the Spot Fleet request.

STRUCT(
"allocation_strategy" VARCHAR,
"on_demand_allocation_strategy" VARCHAR,
"spot_maintenance_strategies" STRUCT(
"capacity_rebalance" STRUCT(
"replacement_strategy" VARCHAR,
"termination_delay" BIGINT
)
),
"client_token" VARCHAR,
"excess_capacity_termination_policy" VARCHAR,
"fulfilled_capacity" DOUBLE,
"on_demand_fulfilled_capacity" DOUBLE,
"iam_fleet_role" VARCHAR,
"launch_specifications" STRUCT(
"security_groups" STRUCT(
"group_name" VARCHAR,
"group_id" VARCHAR
)[],
"addressing_type" VARCHAR,
"block_device_mappings" STRUCT(
"device_name" VARCHAR,
"virtual_name" VARCHAR,
"ebs" STRUCT(
"delete_on_termination" BOOLEAN,
"iops" BIGINT,
"snapshot_id" VARCHAR,
"volume_size" BIGINT,
"volume_type" VARCHAR,
"kms_key_id" VARCHAR,
"throughput" BIGINT,
"outpost_arn" VARCHAR,
"encrypted" BOOLEAN
),
"no_device" VARCHAR
)[],
"ebs_optimized" BOOLEAN,
"iam_instance_profile" STRUCT(
"arn" VARCHAR,
"name" VARCHAR
),
"image_id" VARCHAR,
"instance_type" VARCHAR,
"kernel_id" VARCHAR,
"key_name" VARCHAR,
"monitoring" STRUCT(
"enabled" BOOLEAN
),
"network_interfaces" STRUCT(
"associate_public_ip_address" BOOLEAN,
"delete_on_termination" BOOLEAN,
"description" VARCHAR,
"device_index" BIGINT,
"groups" VARCHAR[],
"ipv6_address_count" BIGINT,
"ipv6_addresses" STRUCT(
"ipv6_address" VARCHAR,
"is_primary_ipv6" BOOLEAN
)[],
"network_interface_id" VARCHAR,
"private_ip_address" VARCHAR,
"private_ip_addresses" STRUCT(
"primary" BOOLEAN,
"private_ip_address" VARCHAR
)[],
"secondary_private_ip_address_count" BIGINT,
"subnet_id" VARCHAR,
"associate_carrier_ip_address" BOOLEAN,
"interface_type" VARCHAR,
"network_card_index" BIGINT,
"ipv4_prefixes" STRUCT(
"ipv4_prefix" VARCHAR
)[],
"ipv4_prefix_count" BIGINT,
"ipv6_prefixes" STRUCT(
"ipv6_prefix" VARCHAR
)[],
"ipv6_prefix_count" BIGINT,
"primary_ipv6" BOOLEAN,
"ena_srd_specification" STRUCT(
"ena_srd_enabled" BOOLEAN,
"ena_srd_udp_specification" STRUCT(
"ena_srd_udp_enabled" BOOLEAN
)
),
"connection_tracking_specification" STRUCT(
"tcp_established_timeout" BIGINT,
"udp_stream_timeout" BIGINT,
"udp_timeout" BIGINT
)
)[],
"placement" STRUCT(
"availability_zone" VARCHAR,
"group_name" VARCHAR,
"tenancy" VARCHAR
),
"ramdisk_id" VARCHAR,
"spot_price" VARCHAR,
"subnet_id" VARCHAR,
"user_data" VARCHAR,
"weighted_capacity" DOUBLE,
"tag_specifications" STRUCT(
"resource_type" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[],
"instance_requirements" STRUCT(
"v_cpu_count" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"memory_mi_b" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"cpu_manufacturers" VARCHAR[],
"memory_gi_b_per_v_cpu" STRUCT(
"min" DOUBLE,
"max" DOUBLE
),
"excluded_instance_types" VARCHAR[],
"instance_generations" VARCHAR[],
"spot_max_price_percentage_over_lowest_price" BIGINT,
"on_demand_max_price_percentage_over_lowest_price" BIGINT,
"bare_metal" VARCHAR,
"burstable_performance" VARCHAR,
"require_hibernate_support" BOOLEAN,
"network_interface_count" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"local_storage" VARCHAR,
"local_storage_types" VARCHAR[],
"total_local_storage_gb" STRUCT(
"min" DOUBLE,
"max" DOUBLE
),
"baseline_ebs_bandwidth_mbps" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"accelerator_types" VARCHAR[],
"accelerator_count" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"accelerator_manufacturers" VARCHAR[],
"accelerator_names" VARCHAR[],
"accelerator_total_memory_mi_b" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"network_bandwidth_gbps" STRUCT(
"min" DOUBLE,
"max" DOUBLE
),
"allowed_instance_types" VARCHAR[],
"max_spot_price_as_percentage_of_optimal_on_demand_price" BIGINT
)
)[],
"launch_template_configs" STRUCT(
"launch_template_specification" STRUCT(
"launch_template_id" VARCHAR,
"launch_template_name" VARCHAR,
"version" VARCHAR
),
"overrides" STRUCT(
"instance_type" VARCHAR,
"spot_price" VARCHAR,
"subnet_id" VARCHAR,
"availability_zone" VARCHAR,
"weighted_capacity" DOUBLE,
"priority" DOUBLE,
"instance_requirements" STRUCT(
"v_cpu_count" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"memory_mi_b" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"cpu_manufacturers" VARCHAR[],
"memory_gi_b_per_v_cpu" STRUCT(
"min" DOUBLE,
"max" DOUBLE
),
"excluded_instance_types" VARCHAR[],
"instance_generations" VARCHAR[],
"spot_max_price_percentage_over_lowest_price" BIGINT,
"on_demand_max_price_percentage_over_lowest_price" BIGINT,
"bare_metal" VARCHAR,
"burstable_performance" VARCHAR,
"require_hibernate_support" BOOLEAN,
"network_interface_count" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"local_storage" VARCHAR,
"local_storage_types" VARCHAR[],
"total_local_storage_gb" STRUCT(
"min" DOUBLE,
"max" DOUBLE
),
"baseline_ebs_bandwidth_mbps" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"accelerator_types" VARCHAR[],
"accelerator_count" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"accelerator_manufacturers" VARCHAR[],
"accelerator_names" VARCHAR[],
"accelerator_total_memory_mi_b" STRUCT(
"min" BIGINT,
"max" BIGINT
),
"network_bandwidth_gbps" STRUCT(
"min" DOUBLE,
"max" DOUBLE
),
"allowed_instance_types" VARCHAR[],
"max_spot_price_as_percentage_of_optimal_on_demand_price" BIGINT
)
)[]
)[],
"spot_price" VARCHAR,
"target_capacity" BIGINT,
"on_demand_target_capacity" BIGINT,
"on_demand_max_total_price" VARCHAR,
"spot_max_total_price" VARCHAR,
"terminate_instances_with_expiration" BOOLEAN,
"type" VARCHAR,
"valid_from" TIMESTAMP_S,
"valid_until" TIMESTAMP_S,
"replace_unhealthy_instances" BOOLEAN,
"instance_interruption_behavior" VARCHAR,
"load_balancers_config" STRUCT(
"classic_load_balancers_config" STRUCT(
"classic_load_balancers" STRUCT(
"name" VARCHAR
)[]
),
"target_groups_config" STRUCT(
"target_groups" STRUCT(
"arn" VARCHAR
)[]
)
),
"instance_pools_to_use_count" BIGINT,
"context" VARCHAR,
"target_capacity_unit_type" VARCHAR,
"tag_specifications" STRUCT(
"resource_type" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
Show child fields
spot_fleet_request_config.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 the Priority parameter for LaunchTemplateOverrides. You can assign the same priority to different LaunchTemplateOverrides. 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 the OnDemandAllocationStrategy is set to prioritized, 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

spot_fleet_request_config.client_token

A unique, case-sensitive identifier that you provide to ensure the idempotency of your listings. This helps to avoid duplicate listings. For more information, see Ensuring Idempotency.

spot_fleet_request_config.context

Reserved.

spot_fleet_request_config.excess_capacity_termination_policy

Indicates whether running 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.

spot_fleet_request_config.fulfilled_capacity

The number of units fulfilled by this request compared to the set target capacity. You cannot set this value.

spot_fleet_request_config.iam_fleet_role

The Amazon Resource Name (ARN) of an 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 using CancelSpotFleetRequests or when the Spot Fleet request expires, if you set TerminateInstancesWithExpiration.

spot_fleet_request_config.instance_interruption_behavior

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

spot_fleet_request_config.instance_pools_to_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.

spot_fleet_request_config.launch_specifications[]
Show child fields
spot_fleet_request_config.launch_specifications[].addressing_type

Deprecated.

spot_fleet_request_config.launch_specifications[].block_device_mappings[]
Show child fields
spot_fleet_request_config.launch_specifications[].block_device_mappings[].device_name

The device name (for example, /dev/sdh or xvdh).

spot_fleet_request_config.launch_specifications[].block_device_mappings[].ebs

Parameters used to automatically set up EBS volumes when the instance is launched.

Show child fields
spot_fleet_request_config.launch_specifications[].block_device_mappings[].ebs.delete_on_termination

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.

spot_fleet_request_config.launch_specifications[].block_device_mappings[].ebs.encrypted

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 EBS 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.

For CreateImage and RegisterImage, whether you can include this parameter, and the allowed values differ depending on the type of block device mapping you are creating.

  • If you are creating a block device mapping for a new (empty) volume, you can include this parameter, and specify either true for an encrypted volume, or false for an unencrypted volume. If you omit this parameter, it defaults to false (unencrypted).

  • If you are creating a block device mapping from an existing encrypted or unencrypted snapshot, you must omit this parameter. If you include this parameter, the request will fail, regardless of the value that you specify.

  • If you are creating a block device mapping from an existing unencrypted volume, you can include this parameter, but you must specify false. If you specify true, the request will fail. In this case, we recommend that you omit the parameter.

  • If you are creating a block device mapping from an existing encrypted volume, you can include this parameter, and specify either true or false. However, if you specify false, the parameter is ignored and the block device mapping is always encrypted. In this case, we recommend that you omit the parameter.

spot_fleet_request_config.launch_specifications[].block_device_mappings[].ebs.iops

The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 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 IOPS

  • io1: 100 - 64,000 IOPS

  • io2: 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 and io2 volumes. The default for gp3 volumes is 3,000 IOPS.

spot_fleet_request_config.launch_specifications[].block_device_mappings[].ebs.kms_key_id

Identifier (key ID, key alias, ID ARN, or alias ARN) for a customer managed CMK under which the EBS volume is encrypted.

This parameter is only supported on BlockDeviceMapping objects called by RunInstances, RequestSpotFleet, and RequestSpotInstances.

spot_fleet_request_config.launch_specifications[].block_device_mappings[].ebs.outpost_arn

The ARN of the Outpost on which the snapshot is stored.

This parameter is not supported when using CreateImage.

spot_fleet_request_config.launch_specifications[].block_device_mappings[].ebs.snapshot_id

The ID of the snapshot.

spot_fleet_request_config.launch_specifications[].block_device_mappings[].ebs.throughput

The throughput that the volume supports, in MiB/s.

This parameter is valid only for gp3 volumes.

Valid Range: Minimum value of 125. Maximum value of 1000.

spot_fleet_request_config.launch_specifications[].block_device_mappings[].ebs.volume_size

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 and gp3: 1 - 16,384 GiB

  • io1: 4 - 16,384 GiB

  • io2: 4 - 65,536 GiB

  • st1 and sc1: 125 - 16,384 GiB

  • standard: 1 - 1024 GiB

spot_fleet_request_config.launch_specifications[].block_device_mappings[].ebs.volume_type

The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide.

spot_fleet_request_config.launch_specifications[].block_device_mappings[].no_device

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.

spot_fleet_request_config.launch_specifications[].block_device_mappings[].virtual_name

The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. 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.

spot_fleet_request_config.launch_specifications[].ebs_optimized

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

spot_fleet_request_config.launch_specifications[].iam_instance_profile

The IAM instance profile.

Show child fields
spot_fleet_request_config.launch_specifications[].iam_instance_profile.arn

The Amazon Resource Name (ARN) of the instance profile.

spot_fleet_request_config.launch_specifications[].iam_instance_profile.name

The name of the instance profile.

spot_fleet_request_config.launch_specifications[].image_id

The ID of the AMI.

spot_fleet_request_config.launch_specifications[].instance_requirements

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 specify InstanceType.

Show child fields
spot_fleet_request_config.launch_specifications[].instance_requirements.accelerator_count

The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.

To exclude accelerator-enabled instance types, set Max to 0.

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_specifications[].instance_requirements.accelerator_count.max

The maximum number of accelerators. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.accelerator_count.min

The minimum number of accelerators. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.accelerator_manufacturers[]
spot_fleet_request_config.launch_specifications[].instance_requirements.accelerator_names[]
spot_fleet_request_config.launch_specifications[].instance_requirements.accelerator_total_memory_mi_b

The minimum and maximum amount of total accelerator memory, in MiB.

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_specifications[].instance_requirements.accelerator_total_memory_mi_b.max

The maximum amount of accelerator memory, in MiB. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.accelerator_total_memory_mi_b.min

The minimum amount of accelerator memory, in MiB. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.accelerator_types[]
spot_fleet_request_config.launch_specifications[].instance_requirements.allowed_instance_types[]
spot_fleet_request_config.launch_specifications[].instance_requirements.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

spot_fleet_request_config.launch_specifications[].instance_requirements.baseline_ebs_bandwidth_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

Show child fields
spot_fleet_request_config.launch_specifications[].instance_requirements.baseline_ebs_bandwidth_mbps.max

The maximum baseline bandwidth, in Mbps. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.baseline_ebs_bandwidth_mbps.min

The minimum baseline bandwidth, in Mbps. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.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

spot_fleet_request_config.launch_specifications[].instance_requirements.cpu_manufacturers[]
spot_fleet_request_config.launch_specifications[].instance_requirements.excluded_instance_types[]
spot_fleet_request_config.launch_specifications[].instance_requirements.instance_generations[]
spot_fleet_request_config.launch_specifications[].instance_requirements.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

spot_fleet_request_config.launch_specifications[].instance_requirements.local_storage_types[]
spot_fleet_request_config.launch_specifications[].instance_requirements.max_spot_price_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 to vcpu or memory-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 or MaxSpotPriceAsPercentageOfOptimalOnDemandPrice 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 as 999999.

spot_fleet_request_config.launch_specifications[].instance_requirements.memory_gi_b_per_v_cpu

The minimum and maximum amount of memory per vCPU, in GiB.

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_specifications[].instance_requirements.memory_gi_b_per_v_cpu.max

The maximum amount of memory per vCPU, in GiB. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.memory_gi_b_per_v_cpu.min

The minimum amount of memory per vCPU, in GiB. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.memory_mi_b

The minimum and maximum amount of memory, in MiB.

Show child fields
spot_fleet_request_config.launch_specifications[].instance_requirements.memory_mi_b.max

The maximum amount of memory, in MiB. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.memory_mi_b.min

The minimum amount of memory, in MiB. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.network_bandwidth_gbps

The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_specifications[].instance_requirements.network_bandwidth_gbps.max

The maximum amount of network bandwidth, in Gbps. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.network_bandwidth_gbps.min

The minimum amount of network bandwidth, in Gbps. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.network_interface_count

The minimum and maximum number of network interfaces.

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_specifications[].instance_requirements.network_interface_count.max

The maximum number of network interfaces. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.network_interface_count.min

The minimum number of network interfaces. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.on_demand_max_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 turn off price protection, specify a high value, such as 999999.

This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements.

If you set TargetCapacityUnitType to vcpu or memory-mib, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.

Default: 20

spot_fleet_request_config.launch_specifications[].instance_requirements.require_hibernate_support

Indicates whether instance types must support hibernation for On-Demand Instances.

This parameter is not supported for GetSpotPlacementScores.

Default: false

spot_fleet_request_config.launch_specifications[].instance_requirements.spot_max_price_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 to vcpu or memory-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 or MaxSpotPriceAsPercentageOfOptimalOnDemandPrice 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 as 999999.

Default: 100

spot_fleet_request_config.launch_specifications[].instance_requirements.total_local_storage_gb

The minimum and maximum amount of total local storage, in GB.

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_specifications[].instance_requirements.total_local_storage_gb.max

The maximum amount of total local storage, in GB. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.total_local_storage_gb.min

The minimum amount of total local storage, in GB. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.v_cpu_count

The minimum and maximum number of vCPUs.

Show child fields
spot_fleet_request_config.launch_specifications[].instance_requirements.v_cpu_count.max

The maximum number of vCPUs. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_specifications[].instance_requirements.v_cpu_count.min

The minimum number of vCPUs. If the value is 0, there is no minimum limit.

spot_fleet_request_config.launch_specifications[].instance_type

The instance type.

spot_fleet_request_config.launch_specifications[].kernel_id

The ID of the kernel.

spot_fleet_request_config.launch_specifications[].key_name

The name of the key pair.

spot_fleet_request_config.launch_specifications[].monitoring

Enable or disable monitoring for the instances.

Show child fields
spot_fleet_request_config.launch_specifications[].monitoring.enabled

Enables monitoring for the instance.

Default: false

spot_fleet_request_config.launch_specifications[].network_interfaces[]
Show child fields
spot_fleet_request_config.launch_specifications[].network_interfaces[].associate_carrier_ip_address

Indicates whether to assign a carrier IP address to the network interface.

You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.

spot_fleet_request_config.launch_specifications[].network_interfaces[].associate_public_ip_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.

Amazon Web Services 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.

spot_fleet_request_config.launch_specifications[].network_interfaces[].connection_tracking_specification

A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Connection tracking timeouts in the Amazon EC2 User Guide.

Show child fields
spot_fleet_request_config.launch_specifications[].network_interfaces[].connection_tracking_specification.tcp_established_timeout

Timeout (in seconds) for idle TCP connections in an established state. Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.

spot_fleet_request_config.launch_specifications[].network_interfaces[].connection_tracking_specification.udp_stream_timeout

Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.

spot_fleet_request_config.launch_specifications[].network_interfaces[].connection_tracking_specification.udp_timeout

Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.

spot_fleet_request_config.launch_specifications[].network_interfaces[].delete_on_termination

If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.

spot_fleet_request_config.launch_specifications[].network_interfaces[].description

The description of the network interface. Applies only if creating a network interface when launching an instance.

spot_fleet_request_config.launch_specifications[].network_interfaces[].device_index

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.

spot_fleet_request_config.launch_specifications[].network_interfaces[].ena_srd_specification

Specifies the ENA Express settings for the network interface that's attached to the instance.

Show child fields
spot_fleet_request_config.launch_specifications[].network_interfaces[].ena_srd_specification.ena_srd_enabled

Specifies whether ENA Express is enabled for the network interface when you launch an instance from your launch template.

spot_fleet_request_config.launch_specifications[].network_interfaces[].ena_srd_specification.ena_srd_udp_specification

Contains ENA Express settings for UDP network traffic in your launch template.

Show child fields
spot_fleet_request_config.launch_specifications[].network_interfaces[].ena_srd_specification.ena_srd_udp_specification.ena_srd_udp_enabled

Indicates whether UDP traffic uses ENA Express for your instance. To ensure that UDP traffic can use ENA Express when you launch an instance, you must also set EnaSrdEnabled in the EnaSrdSpecificationRequest to true in your launch template.

spot_fleet_request_config.launch_specifications[].network_interfaces[].groups[]
spot_fleet_request_config.launch_specifications[].network_interfaces[].interface_type

The type of network interface.

Valid values: interface | efa

spot_fleet_request_config.launch_specifications[].network_interfaces[].ipv4_prefix_count

The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv4Prefix option.

spot_fleet_request_config.launch_specifications[].network_interfaces[].ipv4_prefixes[]
Show child fields
spot_fleet_request_config.launch_specifications[].network_interfaces[].ipv4_prefixes[].ipv4_prefix

The IPv4 prefix. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.

spot_fleet_request_config.launch_specifications[].network_interfaces[].ipv6_address_count

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.

spot_fleet_request_config.launch_specifications[].network_interfaces[].ipv6_addresses[]
Show child fields
spot_fleet_request_config.launch_specifications[].network_interfaces[].ipv6_addresses[].ipv6_address

The IPv6 address.

spot_fleet_request_config.launch_specifications[].network_interfaces[].ipv6_addresses[].is_primary_ipv6

Determines if an IPv6 address associated with a network interface is the primary IPv6 address. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information, see RunInstances.

spot_fleet_request_config.launch_specifications[].network_interfaces[].ipv6_prefix_count

The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv6Prefix option.

spot_fleet_request_config.launch_specifications[].network_interfaces[].ipv6_prefixes[]
Show child fields
spot_fleet_request_config.launch_specifications[].network_interfaces[].ipv6_prefixes[].ipv6_prefix

The IPv6 prefix.

spot_fleet_request_config.launch_specifications[].network_interfaces[].network_card_index

The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.

spot_fleet_request_config.launch_specifications[].network_interfaces[].network_interface_id

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.

spot_fleet_request_config.launch_specifications[].network_interfaces[].primary_ipv6

The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.

spot_fleet_request_config.launch_specifications[].network_interfaces[].private_ip_address

The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.

spot_fleet_request_config.launch_specifications[].network_interfaces[].private_ip_addresses[]
Show child fields
spot_fleet_request_config.launch_specifications[].network_interfaces[].private_ip_addresses[].primary

Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.

spot_fleet_request_config.launch_specifications[].network_interfaces[].private_ip_addresses[].private_ip_address

The private IPv4 address.

spot_fleet_request_config.launch_specifications[].network_interfaces[].secondary_private_ip_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.

spot_fleet_request_config.launch_specifications[].network_interfaces[].subnet_id

The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.

spot_fleet_request_config.launch_specifications[].placement

The placement information.

Show child fields
spot_fleet_request_config.launch_specifications[].placement.availability_zone

The Availability Zone.

[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".

spot_fleet_request_config.launch_specifications[].placement.group_name

The name of the placement group.

spot_fleet_request_config.launch_specifications[].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. The host tenancy is not supported for Spot Instances.

spot_fleet_request_config.launch_specifications[].ramdisk_id

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 Amazon Web Services Resource Center and search for the kernel ID.

spot_fleet_request_config.launch_specifications[].security_groups[]
Show child fields
spot_fleet_request_config.launch_specifications[].security_groups[].group_id

The ID of the security group.

spot_fleet_request_config.launch_specifications[].security_groups[].group_name

The name of the security group.

spot_fleet_request_config.launch_specifications[].spot_price

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_request_config.launch_specifications[].subnet_id

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_request_config.launch_specifications[].tag_specifications[]
Show child fields
spot_fleet_request_config.launch_specifications[].tag_specifications[].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 the TagSpecifications parameter in SpotFleetRequestConfigData .

spot_fleet_request_config.launch_specifications[].tag_specifications[].tags[]
Show child fields
spot_fleet_request_config.launch_specifications[].tag_specifications[].tags[].key

The key of the tag.

Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

spot_fleet_request_config.launch_specifications[].tag_specifications[].tags[].value

The value of the tag.

Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

spot_fleet_request_config.launch_specifications[].user_data

The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.

spot_fleet_request_config.launch_specifications[].weighted_capacity

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 and priceCapacityOptimized 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 requested TargetCapacity, resulting in only 1 instance being launched, the price used is per instance hour.

spot_fleet_request_config.launch_template_configs[]
Show child fields
spot_fleet_request_config.launch_template_configs[].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.

Show child fields
spot_fleet_request_config.launch_template_configs[].launch_template_specification.launch_template_id

The ID of the launch template.

You must specify the LaunchTemplateId or the LaunchTemplateName, but not both.

spot_fleet_request_config.launch_template_configs[].launch_template_specification.launch_template_name

The name of the launch template.

You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.

spot_fleet_request_config.launch_template_configs[].launch_template_specification.version

The launch template version number, $Latest, or $Default. You must specify a value, otherwise the request fails.

If the value is $Latest, Amazon EC2 uses the latest version of the launch template.

If the value is $Default, Amazon EC2 uses the default version of the launch template.

spot_fleet_request_config.launch_template_configs[].overrides[]
Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].availability_zone

The Availability Zone in which to launch the instances.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements

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 specify InstanceType.

Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.accelerator_count

The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.

To exclude accelerator-enabled instance types, set Max to 0.

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.accelerator_count.max

The maximum number of accelerators. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.accelerator_count.min

The minimum number of accelerators. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.accelerator_manufacturers[]
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.accelerator_names[]
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.accelerator_total_memory_mi_b

The minimum and maximum amount of total accelerator memory, in MiB.

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.accelerator_total_memory_mi_b.max

The maximum amount of accelerator memory, in MiB. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.accelerator_total_memory_mi_b.min

The minimum amount of accelerator memory, in MiB. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.accelerator_types[]
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.allowed_instance_types[]
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.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

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.baseline_ebs_bandwidth_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

Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.baseline_ebs_bandwidth_mbps.max

The maximum baseline bandwidth, in Mbps. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.baseline_ebs_bandwidth_mbps.min

The minimum baseline bandwidth, in Mbps. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.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

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.cpu_manufacturers[]
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.excluded_instance_types[]
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.instance_generations[]
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.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

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.local_storage_types[]
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.max_spot_price_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 to vcpu or memory-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 or MaxSpotPriceAsPercentageOfOptimalOnDemandPrice 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 as 999999.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.memory_gi_b_per_v_cpu

The minimum and maximum amount of memory per vCPU, in GiB.

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.memory_gi_b_per_v_cpu.max

The maximum amount of memory per vCPU, in GiB. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.memory_gi_b_per_v_cpu.min

The minimum amount of memory per vCPU, in GiB. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.memory_mi_b

The minimum and maximum amount of memory, in MiB.

Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.memory_mi_b.max

The maximum amount of memory, in MiB. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.memory_mi_b.min

The minimum amount of memory, in MiB. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.network_bandwidth_gbps

The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.network_bandwidth_gbps.max

The maximum amount of network bandwidth, in Gbps. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.network_bandwidth_gbps.min

The minimum amount of network bandwidth, in Gbps. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.network_interface_count

The minimum and maximum number of network interfaces.

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.network_interface_count.max

The maximum number of network interfaces. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.network_interface_count.min

The minimum number of network interfaces. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.on_demand_max_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 turn off price protection, specify a high value, such as 999999.

This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements.

If you set TargetCapacityUnitType to vcpu or memory-mib, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.

Default: 20

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.require_hibernate_support

Indicates whether instance types must support hibernation for On-Demand Instances.

This parameter is not supported for GetSpotPlacementScores.

Default: false

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.spot_max_price_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 to vcpu or memory-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 or MaxSpotPriceAsPercentageOfOptimalOnDemandPrice 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 as 999999.

Default: 100

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.total_local_storage_gb

The minimum and maximum amount of total local storage, in GB.

Default: No minimum or maximum limits

Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.total_local_storage_gb.max

The maximum amount of total local storage, in GB. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.total_local_storage_gb.min

The minimum amount of total local storage, in GB. If this parameter is not specified, there is no minimum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.v_cpu_count

The minimum and maximum number of vCPUs.

Show child fields
spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.v_cpu_count.max

The maximum number of vCPUs. If this parameter is not specified, there is no maximum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_requirements.v_cpu_count.min

The minimum number of vCPUs. If the value is 0, there is no minimum limit.

spot_fleet_request_config.launch_template_configs[].overrides[].instance_type

The instance type.

spot_fleet_request_config.launch_template_configs[].overrides[].priority

The priority for the launch template override. The highest priority is launched first.

If OnDemandAllocationStrategy is set to prioritized, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.

If the Spot AllocationStrategy is set to capacityOptimizedPrioritized, 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_fleet_request_config.launch_template_configs[].overrides[].spot_price

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_request_config.launch_template_configs[].overrides[].subnet_id

The ID of the subnet in which to launch the instances.

spot_fleet_request_config.launch_template_configs[].overrides[].weighted_capacity

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 and priceCapacityOptimized 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 requested TargetCapacity, resulting in only 1 instance being launched, the price used is per instance hour.

spot_fleet_request_config.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.

Show child fields
spot_fleet_request_config.load_balancers_config.classic_load_balancers_config

The Classic Load Balancers.

Show child fields
spot_fleet_request_config.load_balancers_config.classic_load_balancers_config.classic_load_balancers[]
Show child fields
spot_fleet_request_config.load_balancers_config.classic_load_balancers_config.classic_load_balancers[].name

The name of the load balancer.

spot_fleet_request_config.load_balancers_config.target_groups_config

The target groups.

Show child fields
spot_fleet_request_config.load_balancers_config.target_groups_config.target_groups[]
Show child fields
spot_fleet_request_config.load_balancers_config.target_groups_config.target_groups[].arn

The Amazon Resource Name (ARN) of the target group.

spot_fleet_request_config.on_demand_allocation_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 specify prioritized, 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 to lowestPrice.

spot_fleet_request_config.on_demand_fulfilled_capacity

The number of On-Demand units fulfilled by this request compared to the set target On-Demand capacity.

spot_fleet_request_config.on_demand_max_total_price

The maximum amount per hour for On-Demand Instances that you're willing to pay. You can use the onDemandMaxTotalPrice parameter, the spotMaxTotalPrice 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. The onDemandMaxTotalPrice does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified for onDemandMaxTotalPrice. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide.

spot_fleet_request_config.on_demand_target_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.

spot_fleet_request_config.replace_unhealthy_instances

Indicates whether Spot Fleet should replace unhealthy instances.

spot_fleet_request_config.spot_maintenance_strategies

The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.

Show child fields
spot_fleet_request_config.spot_maintenance_strategies.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.

Show child fields
spot_fleet_request_config.spot_maintenance_strategies.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 (in TerminationDelay), terminates the instances that received a rebalance notification.

spot_fleet_request_config.spot_maintenance_strategies.capacity_rebalance.termination_delay

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 to launch-before-terminate.

Not valid when ReplacementStrategy is set to launch.

Valid values: Minimum value of 120 seconds. Maximum value of 7200 seconds.

spot_fleet_request_config.spot_max_total_price

The maximum amount per hour for Spot Instances that you're willing to pay. You can use the spotMaxTotalPrice parameter, the onDemandMaxTotalPrice 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. The spotMaxTotalPrice does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified for spotMaxTotalPrice. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide.

spot_fleet_request_config.spot_price

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_request_config.tag_specifications[]
Show child fields
spot_fleet_request_config.tag_specifications[].resource_type

The type of resource to tag on creation.

spot_fleet_request_config.tag_specifications[].tags[]
Show child fields
spot_fleet_request_config.tag_specifications[].tags[].key

The key of the tag.

Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

spot_fleet_request_config.tag_specifications[].tags[].value

The value of the tag.

Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

spot_fleet_request_config.target_capacity

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.

spot_fleet_request_config.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)

spot_fleet_request_config.terminate_instances_with_expiration

Indicates whether running Spot Instances are terminated when the Spot Fleet request expires.

spot_fleet_request_config.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 is maintain, 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.

spot_fleet_request_config.valid_from

The start date and time of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). By default, Amazon EC2 starts fulfilling the request immediately.

spot_fleet_request_config.valid_until

The end date and time of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). 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.

spot_fleet_request_id

The ID of the Spot Fleet request.

VARCHAR
spot_fleet_request_state

The state of the Spot Fleet request.

VARCHAR
tags

The tags for a Spot Fleet resource.

STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
Show child fields
tags[]
Show child fields
tags[].key

The key of the tag.

Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

tags[].value

The value of the tag.

Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.