SpotFleetRequest

Provides an EC2 Spot Fleet Request resource. This allows a fleet of Spot instances to be requested on the Spot market.

Example Usage

Using launch specifications

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        // Request a Spot fleet
        var cheapCompute = new Aws.Ec2.SpotFleetRequest("cheapCompute", new Aws.Ec2.SpotFleetRequestArgs
        {
            AllocationStrategy = "diversified",
            IamFleetRole = "arn:aws:iam::12345678:role/spot-fleet",
            LaunchSpecifications = 
            {
                new Aws.Ec2.Inputs.SpotFleetRequestLaunchSpecificationArgs
                {
                    Ami = "ami-1234",
                    IamInstanceProfileArn = aws_iam_instance_profile.Example.Arn,
                    InstanceType = "m4.10xlarge",
                    PlacementTenancy = "dedicated",
                    SpotPrice = "2.793",
                },
                new Aws.Ec2.Inputs.SpotFleetRequestLaunchSpecificationArgs
                {
                    Ami = "ami-5678",
                    AvailabilityZone = "us-west-1a",
                    IamInstanceProfileArn = aws_iam_instance_profile.Example.Arn,
                    InstanceType = "m4.4xlarge",
                    KeyName = "my-key",
                    RootBlockDevices = 
                    {
                        new Aws.Ec2.Inputs.SpotFleetRequestLaunchSpecificationRootBlockDeviceArgs
                        {
                            VolumeSize = 300,
                            VolumeType = "gp2",
                        },
                    },
                    SpotPrice = "1.117",
                    SubnetId = "subnet-1234",
                    Tags = 
                    {
                        { "Name", "spot-fleet-example" },
                    },
                    WeightedCapacity = "35",
                },
            },
            SpotPrice = "0.03",
            TargetCapacity = 6,
            ValidUntil = "2019-11-04T20:44:20Z",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := ec2.NewSpotFleetRequest(ctx, "cheapCompute", &ec2.SpotFleetRequestArgs{
            AllocationStrategy: pulumi.String("diversified"),
            IamFleetRole:       pulumi.String("arn:aws:iam::12345678:role/spot-fleet"),
            LaunchSpecifications: ec2.SpotFleetRequestLaunchSpecificationArray{
                &ec2.SpotFleetRequestLaunchSpecificationArgs{
                    Ami:                   pulumi.String("ami-1234"),
                    IamInstanceProfileArn: pulumi.String(aws_iam_instance_profile.Example.Arn),
                    InstanceType:          pulumi.String("m4.10xlarge"),
                    PlacementTenancy:      pulumi.String("dedicated"),
                    SpotPrice:             pulumi.String("2.793"),
                },
                &ec2.SpotFleetRequestLaunchSpecificationArgs{
                    Ami:                   pulumi.String("ami-5678"),
                    AvailabilityZone:      pulumi.String("us-west-1a"),
                    IamInstanceProfileArn: pulumi.String(aws_iam_instance_profile.Example.Arn),
                    InstanceType:          pulumi.String("m4.4xlarge"),
                    KeyName:               pulumi.String("my-key"),
                    RootBlockDevices: ec2.SpotFleetRequestLaunchSpecificationRootBlockDeviceArray{
                        &ec2.SpotFleetRequestLaunchSpecificationRootBlockDeviceArgs{
                            VolumeSize: pulumi.Int(300),
                            VolumeType: pulumi.String("gp2"),
                        },
                    },
                    SpotPrice: pulumi.String("1.117"),
                    SubnetId:  pulumi.String("subnet-1234"),
                    Tags: pulumi.StringMap{
                        "Name": pulumi.String("spot-fleet-example"),
                    },
                    WeightedCapacity: pulumi.String("35"),
                },
            },
            SpotPrice:      pulumi.String("0.03"),
            TargetCapacity: pulumi.Int(6),
            ValidUntil:     pulumi.String("2019-11-04T20:44:20Z"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

# Request a Spot fleet
cheap_compute = aws.ec2.SpotFleetRequest("cheapCompute",
    allocation_strategy="diversified",
    iam_fleet_role="arn:aws:iam::12345678:role/spot-fleet",
    launch_specifications=[
        {
            "ami": "ami-1234",
            "iamInstanceProfileArn": aws_iam_instance_profile["example"]["arn"],
            "instance_type": "m4.10xlarge",
            "placement_tenancy": "dedicated",
            "spot_price": "2.793",
        },
        {
            "ami": "ami-5678",
            "availability_zone": "us-west-1a",
            "iamInstanceProfileArn": aws_iam_instance_profile["example"]["arn"],
            "instance_type": "m4.4xlarge",
            "key_name": "my-key",
            "root_block_devices": [{
                "volume_size": "300",
                "volumeType": "gp2",
            }],
            "spot_price": "1.117",
            "subnet_id": "subnet-1234",
            "tags": {
                "Name": "spot-fleet-example",
            },
            "weightedCapacity": 35,
        },
    ],
    spot_price="0.03",
    target_capacity=6,
    valid_until="2019-11-04T20:44:20Z")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

// Request a Spot fleet
const cheapCompute = new aws.ec2.SpotFleetRequest("cheap_compute", {
    allocationStrategy: "diversified",
    iamFleetRole: "arn:aws:iam::12345678:role/spot-fleet",
    launchSpecifications: [
        {
            ami: "ami-1234",
            iamInstanceProfileArn: aws_iam_instance_profile_example.arn,
            instanceType: "m4.10xlarge",
            placementTenancy: "dedicated",
            spotPrice: "2.793",
        },
        {
            ami: "ami-5678",
            availabilityZone: "us-west-1a",
            iamInstanceProfileArn: aws_iam_instance_profile_example.arn,
            instanceType: "m4.4xlarge",
            keyName: "my-key",
            rootBlockDevices: [{
                volumeSize: 300,
                volumeType: "gp2",
            }],
            spotPrice: "1.117",
            subnetId: "subnet-1234",
            tags: {
                Name: "spot-fleet-example",
            },
            weightedCapacity: "35",
        },
    ],
    spotPrice: "0.03",
    targetCapacity: 6,
    validUntil: "2019-11-04T20:44:20Z",
});

Using launch templates

Coming soon!

Coming soon!

import pulumi
import pulumi_aws as aws

foo_launch_template = aws.ec2.LaunchTemplate("fooLaunchTemplate",
    image_id="ami-516b9131",
    instance_type="m1.small",
    key_name="some-key",
    spot_price="0.05")
foo_spot_fleet_request = aws.ec2.SpotFleetRequest("fooSpotFleetRequest",
    iam_fleet_role="arn:aws:iam::12345678:role/spot-fleet",
    spot_price="0.005",
    target_capacity=2,
    valid_until="2019-11-04T20:44:20Z",
    launch_template_configs=[{
        "launchTemplateSpecification": {
            "id": foo_launch_template.id,
            "version": foo_launch_template.latest_version,
        },
    }],
    opts=ResourceOptions(depends_on=["aws_iam_policy_attachment.test-attach"]))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const fooLaunchTemplate = new aws.ec2.LaunchTemplate("fooLaunchTemplate", {
    imageId: "ami-516b9131",
    instanceType: "m1.small",
    keyName: "some-key",
    spotPrice: "0.05",
});
const fooSpotFleetRequest = new aws.ec2.SpotFleetRequest("fooSpotFleetRequest", {
    iamFleetRole: "arn:aws:iam::12345678:role/spot-fleet",
    spotPrice: "0.005",
    targetCapacity: 2,
    validUntil: "2019-11-04T20:44:20Z",
    launchTemplateConfigs: [{
        launchTemplateSpecification: {
            id: fooLaunchTemplate.id,
            version: fooLaunchTemplate.latestVersion,
        },
    }],
}, {
    dependsOn: ["aws_iam_policy_attachment.test-attach"],
});

Using multiple launch specifications

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = new Aws.Ec2.SpotFleetRequest("foo", new Aws.Ec2.SpotFleetRequestArgs
        {
            IamFleetRole = "arn:aws:iam::12345678:role/spot-fleet",
            LaunchSpecifications = 
            {
                new Aws.Ec2.Inputs.SpotFleetRequestLaunchSpecificationArgs
                {
                    Ami = "ami-d06a90b0",
                    AvailabilityZone = "us-west-2a",
                    InstanceType = "m1.small",
                    KeyName = "my-key",
                },
                new Aws.Ec2.Inputs.SpotFleetRequestLaunchSpecificationArgs
                {
                    Ami = "ami-d06a90b0",
                    AvailabilityZone = "us-west-2a",
                    InstanceType = "m5.large",
                    KeyName = "my-key",
                },
            },
            SpotPrice = "0.005",
            TargetCapacity = 2,
            ValidUntil = "2019-11-04T20:44:20Z",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := ec2.NewSpotFleetRequest(ctx, "foo", &ec2.SpotFleetRequestArgs{
            IamFleetRole: pulumi.String("arn:aws:iam::12345678:role/spot-fleet"),
            LaunchSpecifications: ec2.SpotFleetRequestLaunchSpecificationArray{
                &ec2.SpotFleetRequestLaunchSpecificationArgs{
                    Ami:              pulumi.String("ami-d06a90b0"),
                    AvailabilityZone: pulumi.String("us-west-2a"),
                    InstanceType:     pulumi.String("m1.small"),
                    KeyName:          pulumi.String("my-key"),
                },
                &ec2.SpotFleetRequestLaunchSpecificationArgs{
                    Ami:              pulumi.String("ami-d06a90b0"),
                    AvailabilityZone: pulumi.String("us-west-2a"),
                    InstanceType:     pulumi.String("m5.large"),
                    KeyName:          pulumi.String("my-key"),
                },
            },
            SpotPrice:      pulumi.String("0.005"),
            TargetCapacity: pulumi.Int(2),
            ValidUntil:     pulumi.String("2019-11-04T20:44:20Z"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

foo = aws.ec2.SpotFleetRequest("foo",
    iam_fleet_role="arn:aws:iam::12345678:role/spot-fleet",
    launch_specifications=[
        {
            "ami": "ami-d06a90b0",
            "availability_zone": "us-west-2a",
            "instance_type": "m1.small",
            "key_name": "my-key",
        },
        {
            "ami": "ami-d06a90b0",
            "availability_zone": "us-west-2a",
            "instance_type": "m5.large",
            "key_name": "my-key",
        },
    ],
    spot_price="0.005",
    target_capacity=2,
    valid_until="2019-11-04T20:44:20Z")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const foo = new aws.ec2.SpotFleetRequest("foo", {
    iamFleetRole: "arn:aws:iam::12345678:role/spot-fleet",
    launchSpecifications: [
        {
            ami: "ami-d06a90b0",
            availabilityZone: "us-west-2a",
            instanceType: "m1.small",
            keyName: "my-key",
        },
        {
            ami: "ami-d06a90b0",
            availabilityZone: "us-west-2a",
            instanceType: "m5.large",
            keyName: "my-key",
        },
    ],
    spotPrice: "0.005",
    targetCapacity: 2,
    validUntil: "2019-11-04T20:44:20Z",
});

Using multiple launch configurations

Coming soon!

Coming soon!

import pulumi
import pulumi_aws as aws

example = aws.ec2.get_subnet_ids(vpc_id=var["vpc_id"])
foo_launch_template = aws.ec2.LaunchTemplate("fooLaunchTemplate",
    image_id="ami-516b9131",
    instance_type="m1.small",
    key_name="some-key",
    spot_price="0.05")
foo_spot_fleet_request = aws.ec2.SpotFleetRequest("fooSpotFleetRequest",
    iam_fleet_role="arn:aws:iam::12345678:role/spot-fleet",
    spot_price="0.005",
    target_capacity=2,
    valid_until="2019-11-04T20:44:20Z",
    launch_template_configs=[{
        "launchTemplateSpecification": {
            "id": foo_launch_template.id,
            "version": foo_launch_template.latest_version,
        },
        "overrides": [
            {
                "subnet_id": data["aws_subnets"]["example"]["ids"],
            },
            {
                "subnet_id": data["aws_subnets"]["example"]["ids"],
            },
            {
                "subnet_id": data["aws_subnets"]["example"]["ids"],
            },
        ],
    }],
    opts=ResourceOptions(depends_on=["aws_iam_policy_attachment.test-attach"]))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.ec2.getSubnetIds({
    vpcId: _var.vpc_id,
});
const fooLaunchTemplate = new aws.ec2.LaunchTemplate("fooLaunchTemplate", {
    imageId: "ami-516b9131",
    instanceType: "m1.small",
    keyName: "some-key",
    spotPrice: "0.05",
});
const fooSpotFleetRequest = new aws.ec2.SpotFleetRequest("fooSpotFleetRequest", {
    iamFleetRole: "arn:aws:iam::12345678:role/spot-fleet",
    spotPrice: "0.005",
    targetCapacity: 2,
    validUntil: "2019-11-04T20:44:20Z",
    launchTemplateConfigs: [{
        launchTemplateSpecification: {
            id: fooLaunchTemplate.id,
            version: fooLaunchTemplate.latestVersion,
        },
        overrides: [
            {
                subnetId: data.aws_subnets.example.ids[0],
            },
            {
                subnetId: data.aws_subnets.example.ids[1],
            },
            {
                subnetId: data.aws_subnets.example.ids[2],
            },
        ],
    }],
}, {
    dependsOn: ["aws_iam_policy_attachment.test-attach"],
});

Create a SpotFleetRequest Resource

def SpotFleetRequest(resource_name, opts=None, allocation_strategy=None, excess_capacity_termination_policy=None, fleet_type=None, iam_fleet_role=None, instance_interruption_behaviour=None, instance_pools_to_use_count=None, launch_specifications=None, launch_template_configs=None, load_balancers=None, replace_unhealthy_instances=None, spot_price=None, tags=None, target_capacity=None, target_group_arns=None, terminate_instances_with_expiration=None, valid_from=None, valid_until=None, wait_for_fulfillment=None, __props__=None);
name string
The unique name of the resource.
args SpotFleetRequestArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SpotFleetRequestArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SpotFleetRequestArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SpotFleetRequest Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The SpotFleetRequest resource accepts the following input properties:

IamFleetRole string

Grants the Spot fleet permission to 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.

TargetCapacity int

The number of 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.

AllocationStrategy string

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

ExcessCapacityTerminationPolicy string

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

FleetType string

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

InstanceInterruptionBehaviour string

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

InstancePoolsToUseCount int

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

LaunchSpecifications List<SpotFleetRequestLaunchSpecificationArgs>

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

LaunchTemplateConfigs List<SpotFleetRequestLaunchTemplateConfigArgs>

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

LoadBalancers List<string>

A list of elastic load balancer names to add to the Spot fleet.

ReplaceUnhealthyInstances bool

Indicates whether Spot fleet should replace unhealthy instances. Default false.

SpotPrice string

The maximum spot bid for this override request.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

TargetGroupArns List<string>

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

TerminateInstancesWithExpiration bool

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

ValidFrom string

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

ValidUntil string

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. Defaults to 24 hours.

WaitForFulfillment bool

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

IamFleetRole string

Grants the Spot fleet permission to 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.

TargetCapacity int

The number of 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.

AllocationStrategy string

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

ExcessCapacityTerminationPolicy string

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

FleetType string

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

InstanceInterruptionBehaviour string

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

InstancePoolsToUseCount int

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

LaunchSpecifications []SpotFleetRequestLaunchSpecification

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

LaunchTemplateConfigs []SpotFleetRequestLaunchTemplateConfig

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

LoadBalancers []string

A list of elastic load balancer names to add to the Spot fleet.

ReplaceUnhealthyInstances bool

Indicates whether Spot fleet should replace unhealthy instances. Default false.

SpotPrice string

The maximum spot bid for this override request.

Tags map[string]string

A map of tags to assign to the resource.

TargetGroupArns []string

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

TerminateInstancesWithExpiration bool

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

ValidFrom string

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

ValidUntil string

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. Defaults to 24 hours.

WaitForFulfillment bool

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

iamFleetRole string

Grants the Spot fleet permission to 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.

targetCapacity number

The number of 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.

allocationStrategy string

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

excessCapacityTerminationPolicy string

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

fleetType string

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

instanceInterruptionBehaviour string

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

instancePoolsToUseCount number

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

launchSpecifications SpotFleetRequestLaunchSpecification[]

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

launchTemplateConfigs SpotFleetRequestLaunchTemplateConfig[]

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

loadBalancers string[]

A list of elastic load balancer names to add to the Spot fleet.

replaceUnhealthyInstances boolean

Indicates whether Spot fleet should replace unhealthy instances. Default false.

spotPrice string

The maximum spot bid for this override request.

tags {[key: string]: string}

A map of tags to assign to the resource.

targetGroupArns string[]

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

terminateInstancesWithExpiration boolean

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

validFrom string

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

validUntil string

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. Defaults to 24 hours.

waitForFulfillment boolean

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

iam_fleet_role str

Grants the Spot fleet permission to 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.

target_capacity float

The number of 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.

allocation_strategy str

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

excess_capacity_termination_policy str

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

fleet_type str

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

instance_interruption_behaviour str

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

instance_pools_to_use_count float

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

launch_specifications List[SpotFleetRequestLaunchSpecification]

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

launch_template_configs List[SpotFleetRequestLaunchTemplateConfig]

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

load_balancers List[str]

A list of elastic load balancer names to add to the Spot fleet.

replace_unhealthy_instances bool

Indicates whether Spot fleet should replace unhealthy instances. Default false.

spot_price str

The maximum spot bid for this override request.

tags Dict[str, str]

A map of tags to assign to the resource.

target_group_arns List[str]

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

terminate_instances_with_expiration bool

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

valid_from str

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

valid_until str

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. Defaults to 24 hours.

wait_for_fulfillment bool

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

Outputs

All input properties are implicitly available as output properties. Additionally, the SpotFleetRequest resource produces the following output properties:

ClientToken string
Id string
The provider-assigned unique ID for this managed resource.
SpotRequestState string

The state of the Spot fleet request.

ClientToken string
Id string
The provider-assigned unique ID for this managed resource.
SpotRequestState string

The state of the Spot fleet request.

clientToken string
id string
The provider-assigned unique ID for this managed resource.
spotRequestState string

The state of the Spot fleet request.

client_token str
id str
The provider-assigned unique ID for this managed resource.
spot_request_state str

The state of the Spot fleet request.

Look up an Existing SpotFleetRequest Resource

Get an existing SpotFleetRequest resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SpotFleetRequestState, opts?: CustomResourceOptions): SpotFleetRequest
static get(resource_name, id, opts=None, allocation_strategy=None, client_token=None, excess_capacity_termination_policy=None, fleet_type=None, iam_fleet_role=None, instance_interruption_behaviour=None, instance_pools_to_use_count=None, launch_specifications=None, launch_template_configs=None, load_balancers=None, replace_unhealthy_instances=None, spot_price=None, spot_request_state=None, tags=None, target_capacity=None, target_group_arns=None, terminate_instances_with_expiration=None, valid_from=None, valid_until=None, wait_for_fulfillment=None, __props__=None);
func GetSpotFleetRequest(ctx *Context, name string, id IDInput, state *SpotFleetRequestState, opts ...ResourceOption) (*SpotFleetRequest, error)
public static SpotFleetRequest Get(string name, Input<string> id, SpotFleetRequestState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AllocationStrategy string

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

ClientToken string
ExcessCapacityTerminationPolicy string

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

FleetType string

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

IamFleetRole string

Grants the Spot fleet permission to 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.

InstanceInterruptionBehaviour string

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

InstancePoolsToUseCount int

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

LaunchSpecifications List<SpotFleetRequestLaunchSpecificationArgs>

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

LaunchTemplateConfigs List<SpotFleetRequestLaunchTemplateConfigArgs>

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

LoadBalancers List<string>

A list of elastic load balancer names to add to the Spot fleet.

ReplaceUnhealthyInstances bool

Indicates whether Spot fleet should replace unhealthy instances. Default false.

SpotPrice string

The maximum spot bid for this override request.

SpotRequestState string

The state of the Spot fleet request.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

TargetCapacity int

The number of 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.

TargetGroupArns List<string>

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

TerminateInstancesWithExpiration bool

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

ValidFrom string

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

ValidUntil string

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. Defaults to 24 hours.

WaitForFulfillment bool

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

AllocationStrategy string

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

ClientToken string
ExcessCapacityTerminationPolicy string

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

FleetType string

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

IamFleetRole string

Grants the Spot fleet permission to 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.

InstanceInterruptionBehaviour string

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

InstancePoolsToUseCount int

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

LaunchSpecifications []SpotFleetRequestLaunchSpecification

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

LaunchTemplateConfigs []SpotFleetRequestLaunchTemplateConfig

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

LoadBalancers []string

A list of elastic load balancer names to add to the Spot fleet.

ReplaceUnhealthyInstances bool

Indicates whether Spot fleet should replace unhealthy instances. Default false.

SpotPrice string

The maximum spot bid for this override request.

SpotRequestState string

The state of the Spot fleet request.

Tags map[string]string

A map of tags to assign to the resource.

TargetCapacity int

The number of 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.

TargetGroupArns []string

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

TerminateInstancesWithExpiration bool

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

ValidFrom string

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

ValidUntil string

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. Defaults to 24 hours.

WaitForFulfillment bool

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

allocationStrategy string

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

clientToken string
excessCapacityTerminationPolicy string

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

fleetType string

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

iamFleetRole string

Grants the Spot fleet permission to 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.

instanceInterruptionBehaviour string

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

instancePoolsToUseCount number

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

launchSpecifications SpotFleetRequestLaunchSpecification[]

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

launchTemplateConfigs SpotFleetRequestLaunchTemplateConfig[]

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

loadBalancers string[]

A list of elastic load balancer names to add to the Spot fleet.

replaceUnhealthyInstances boolean

Indicates whether Spot fleet should replace unhealthy instances. Default false.

spotPrice string

The maximum spot bid for this override request.

spotRequestState string

The state of the Spot fleet request.

tags {[key: string]: string}

A map of tags to assign to the resource.

targetCapacity number

The number of 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.

targetGroupArns string[]

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

terminateInstancesWithExpiration boolean

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

validFrom string

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

validUntil string

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. Defaults to 24 hours.

waitForFulfillment boolean

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

allocation_strategy str

Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request. The default is lowestPrice.

client_token str
excess_capacity_termination_policy str

Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.

fleet_type str

The type of fleet request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. Default is maintain.

iam_fleet_role str

Grants the Spot fleet permission to 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.

instance_interruption_behaviour str

Indicates whether a Spot instance stops or terminates when it is interrupted. Default is terminate.

instance_pools_to_use_count float

The number of Spot pools across which to allocate your target Spot capacity. Valid only when allocation_strategy is set to lowestPrice. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

launch_specifications List[SpotFleetRequestLaunchSpecification]

Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.

launch_template_configs List[SpotFleetRequestLaunchTemplateConfig]

Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.

load_balancers List[str]

A list of elastic load balancer names to add to the Spot fleet.

replace_unhealthy_instances bool

Indicates whether Spot fleet should replace unhealthy instances. Default false.

spot_price str

The maximum spot bid for this override request.

spot_request_state str

The state of the Spot fleet request.

tags Dict[str, str]

A map of tags to assign to the resource.

target_capacity float

The number of 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.

target_group_arns List[str]

A list of aws.alb.TargetGroup ARNs, for use with Application Load Balancing.

terminate_instances_with_expiration bool

Indicates whether running Spot instances should be terminated when the Spot fleet request expires.

valid_from str

The start date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

valid_until str

The end date and time of the request, in UTC RFC3339 format(for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request. Defaults to 24 hours.

wait_for_fulfillment bool

If set, this provider will wait for the Spot Request to be fulfilled, and will throw an error if the timeout of 10m is reached.

Supporting Types

SpotFleetRequestLaunchSpecification

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Ami string
InstanceType string

The type of instance to request.

AssociatePublicIpAddress bool
AvailabilityZone string

The availability zone in which to place the request.

EbsBlockDevices List<SpotFleetRequestLaunchSpecificationEbsBlockDeviceArgs>
EbsOptimized bool
EphemeralBlockDevices List<SpotFleetRequestLaunchSpecificationEphemeralBlockDeviceArgs>
IamInstanceProfile string
IamInstanceProfileArn string
KeyName string
Monitoring bool
PlacementGroup string
PlacementTenancy string
RootBlockDevices List<SpotFleetRequestLaunchSpecificationRootBlockDeviceArgs>
SpotPrice string

The maximum spot bid for this override request.

SubnetId string

The subnet in which to launch the requested instance.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

UserData string
VpcSecurityGroupIds List<string>
WeightedCapacity string

The capacity added to the fleet by a fulfilled request.

Ami string
InstanceType string

The type of instance to request.

AssociatePublicIpAddress bool
AvailabilityZone string

The availability zone in which to place the request.

EbsBlockDevices []SpotFleetRequestLaunchSpecificationEbsBlockDevice
EbsOptimized bool
EphemeralBlockDevices []SpotFleetRequestLaunchSpecificationEphemeralBlockDevice
IamInstanceProfile string
IamInstanceProfileArn string
KeyName string
Monitoring bool
PlacementGroup string
PlacementTenancy string
RootBlockDevices []SpotFleetRequestLaunchSpecificationRootBlockDevice
SpotPrice string

The maximum spot bid for this override request.

SubnetId string

The subnet in which to launch the requested instance.

Tags map[string]string

A map of tags to assign to the resource.

UserData string
VpcSecurityGroupIds []string
WeightedCapacity string

The capacity added to the fleet by a fulfilled request.

ami string
instanceType string

The type of instance to request.

associatePublicIpAddress boolean
availabilityZone string

The availability zone in which to place the request.

ebsBlockDevices SpotFleetRequestLaunchSpecificationEbsBlockDevice[]
ebsOptimized boolean
ephemeralBlockDevices SpotFleetRequestLaunchSpecificationEphemeralBlockDevice[]
iamInstanceProfile string
iamInstanceProfileArn string
keyName string
monitoring boolean
placementGroup string
placementTenancy string
rootBlockDevices SpotFleetRequestLaunchSpecificationRootBlockDevice[]
spotPrice string

The maximum spot bid for this override request.

subnetId string

The subnet in which to launch the requested instance.

tags {[key: string]: string}

A map of tags to assign to the resource.

userData string
vpcSecurityGroupIds string[]
weightedCapacity string

The capacity added to the fleet by a fulfilled request.

ami str
instance_type str

The type of instance to request.

associate_public_ip_address bool
availability_zone str

The availability zone in which to place the request.

ebs_block_devices List[SpotFleetRequestLaunchSpecificationEbsBlockDevice]
ebs_optimized bool
ephemeral_block_devices List[SpotFleetRequestLaunchSpecificationEphemeralBlockDevice]
iamInstanceProfileArn str
iam_instance_profile str
key_name str
monitoring bool
placement_group str
placement_tenancy str
root_block_devices List[SpotFleetRequestLaunchSpecificationRootBlockDevice]
spot_price str

The maximum spot bid for this override request.

subnet_id str

The subnet in which to launch the requested instance.

tags Dict[str, str]

A map of tags to assign to the resource.

user_data str
vpc_security_group_ids List[str]
weightedCapacity str

The capacity added to the fleet by a fulfilled request.

SpotFleetRequestLaunchSpecificationEbsBlockDevice

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DeviceName string
DeleteOnTermination bool
Encrypted bool
Iops int
KmsKeyId string
SnapshotId string
VolumeSize int
VolumeType string
DeviceName string
DeleteOnTermination bool
Encrypted bool
Iops int
KmsKeyId string
SnapshotId string
VolumeSize int
VolumeType string
deviceName string
deleteOnTermination boolean
encrypted boolean
iops number
kmsKeyId string
snapshotId string
volumeSize number
volumeType string
device_name str
deleteOnTermination bool
encrypted bool
iops float
kms_key_id str
snapshot_id str
volumeType str
volume_size float

SpotFleetRequestLaunchSpecificationEphemeralBlockDevice

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DeviceName string
VirtualName string
DeviceName string
VirtualName string
deviceName string
virtualName string
device_name str
virtualName str

SpotFleetRequestLaunchSpecificationRootBlockDevice

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DeleteOnTermination bool
Encrypted bool
Iops int
KmsKeyId string
VolumeSize int
VolumeType string
DeleteOnTermination bool
Encrypted bool
Iops int
KmsKeyId string
VolumeSize int
VolumeType string
deleteOnTermination boolean
encrypted boolean
iops number
kmsKeyId string
volumeSize number
volumeType string
deleteOnTermination bool
encrypted bool
iops float
kms_key_id str
volumeType str
volume_size float

SpotFleetRequestLaunchTemplateConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

LaunchTemplateSpecification SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs

Launch template specification. See Launch Template Specification below for more details.

Overrides List<SpotFleetRequestLaunchTemplateConfigOverrideArgs>

One or more override configurations. See Overrides below for more details.

LaunchTemplateSpecification SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification

Launch template specification. See Launch Template Specification below for more details.

Overrides []SpotFleetRequestLaunchTemplateConfigOverride

One or more override configurations. See Overrides below for more details.

launchTemplateSpecification SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification

Launch template specification. See Launch Template Specification below for more details.

overrides SpotFleetRequestLaunchTemplateConfigOverride[]

One or more override configurations. See Overrides below for more details.

launchTemplateSpecification Dict[SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification]

Launch template specification. See Launch Template Specification below for more details.

overrides List[SpotFleetRequestLaunchTemplateConfigOverride]

One or more override configurations. See Overrides below for more details.

SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Id string

The ID of the launch template. Conflicts with name.

Name string

The name of the launch template. Conflicts with id.

Version string

Template version. Unlike the autoscaling equivalent, does not support $Latest or $Default, so use the launch_template resource’s attribute, e.g. "${aws_launch_template.foo.latest_version}". It will use the default version if omitted.

Id string

The ID of the launch template. Conflicts with name.

Name string

The name of the launch template. Conflicts with id.

Version string

Template version. Unlike the autoscaling equivalent, does not support $Latest or $Default, so use the launch_template resource’s attribute, e.g. "${aws_launch_template.foo.latest_version}". It will use the default version if omitted.

id string

The ID of the launch template. Conflicts with name.

name string

The name of the launch template. Conflicts with id.

version string

Template version. Unlike the autoscaling equivalent, does not support $Latest or $Default, so use the launch_template resource’s attribute, e.g. "${aws_launch_template.foo.latest_version}". It will use the default version if omitted.

id str

The ID of the launch template. Conflicts with name.

name str

The name of the launch template. Conflicts with id.

version str

Template version. Unlike the autoscaling equivalent, does not support $Latest or $Default, so use the launch_template resource’s attribute, e.g. "${aws_launch_template.foo.latest_version}". It will use the default version if omitted.

SpotFleetRequestLaunchTemplateConfigOverride

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

AvailabilityZone string

The availability zone in which to place the request.

InstanceType string

The type of instance to request.

Priority double

The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority.

SpotPrice string

The maximum spot bid for this override request.

SubnetId string

The subnet in which to launch the requested instance.

WeightedCapacity double

The capacity added to the fleet by a fulfilled request.

AvailabilityZone string

The availability zone in which to place the request.

InstanceType string

The type of instance to request.

Priority float64

The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority.

SpotPrice string

The maximum spot bid for this override request.

SubnetId string

The subnet in which to launch the requested instance.

WeightedCapacity float64

The capacity added to the fleet by a fulfilled request.

availabilityZone string

The availability zone in which to place the request.

instanceType string

The type of instance to request.

priority number

The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority.

spotPrice string

The maximum spot bid for this override request.

subnetId string

The subnet in which to launch the requested instance.

weightedCapacity number

The capacity added to the fleet by a fulfilled request.

availability_zone str

The availability zone in which to place the request.

instance_type str

The type of instance to request.

priority float

The priority for the launch template override. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority.

spot_price str

The maximum spot bid for this override request.

subnet_id str

The subnet in which to launch the requested instance.

weightedCapacity float

The capacity added to the fleet by a fulfilled request.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.