AWS Classic

v5.21.1 published on Thursday, Nov 17, 2022 by Pulumi

Fleet

Provides a resource to manage EC2 Fleets.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Ec2.Fleet("example", new()
    {
        LaunchTemplateConfig = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigArgs
        {
            LaunchTemplateSpecification = new Aws.Ec2.Inputs.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs
            {
                LaunchTemplateId = aws_launch_template.Example.Id,
                Version = aws_launch_template.Example.Latest_version,
            },
        },
        TargetCapacitySpecification = new Aws.Ec2.Inputs.FleetTargetCapacitySpecificationArgs
        {
            DefaultTargetCapacityType = "spot",
            TotalTargetCapacity = 5,
        },
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ec2.NewFleet(ctx, "example", &ec2.FleetArgs{
			LaunchTemplateConfig: &ec2.FleetLaunchTemplateConfigArgs{
				LaunchTemplateSpecification: &ec2.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs{
					LaunchTemplateId: pulumi.Any(aws_launch_template.Example.Id),
					Version:          pulumi.Any(aws_launch_template.Example.Latest_version),
				},
			},
			TargetCapacitySpecification: &ec2.FleetTargetCapacitySpecificationArgs{
				DefaultTargetCapacityType: pulumi.String("spot"),
				TotalTargetCapacity:       pulumi.Int(5),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Fleet;
import com.pulumi.aws.ec2.FleetArgs;
import com.pulumi.aws.ec2.inputs.FleetLaunchTemplateConfigArgs;
import com.pulumi.aws.ec2.inputs.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs;
import com.pulumi.aws.ec2.inputs.FleetTargetCapacitySpecificationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Fleet("example", FleetArgs.builder()        
            .launchTemplateConfig(FleetLaunchTemplateConfigArgs.builder()
                .launchTemplateSpecification(FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs.builder()
                    .launchTemplateId(aws_launch_template.example().id())
                    .version(aws_launch_template.example().latest_version())
                    .build())
                .build())
            .targetCapacitySpecification(FleetTargetCapacitySpecificationArgs.builder()
                .defaultTargetCapacityType("spot")
                .totalTargetCapacity(5)
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.ec2.Fleet("example",
    launch_template_config=aws.ec2.FleetLaunchTemplateConfigArgs(
        launch_template_specification=aws.ec2.FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs(
            launch_template_id=aws_launch_template["example"]["id"],
            version=aws_launch_template["example"]["latest_version"],
        ),
    ),
    target_capacity_specification=aws.ec2.FleetTargetCapacitySpecificationArgs(
        default_target_capacity_type="spot",
        total_target_capacity=5,
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2.Fleet("example", {
    launchTemplateConfig: {
        launchTemplateSpecification: {
            launchTemplateId: aws_launch_template.example.id,
            version: aws_launch_template.example.latest_version,
        },
    },
    targetCapacitySpecification: {
        defaultTargetCapacityType: "spot",
        totalTargetCapacity: 5,
    },
});
resources:
  example:
    type: aws:ec2:Fleet
    properties:
      launchTemplateConfig:
        launchTemplateSpecification:
          launchTemplateId: ${aws_launch_template.example.id}
          version: ${aws_launch_template.example.latest_version}
      targetCapacitySpecification:
        defaultTargetCapacityType: spot
        totalTargetCapacity: 5

Create Fleet Resource

new Fleet(name: string, args: FleetArgs, opts?: CustomResourceOptions);
@overload
def Fleet(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          context: Optional[str] = None,
          excess_capacity_termination_policy: Optional[str] = None,
          launch_template_config: Optional[FleetLaunchTemplateConfigArgs] = None,
          on_demand_options: Optional[FleetOnDemandOptionsArgs] = None,
          replace_unhealthy_instances: Optional[bool] = None,
          spot_options: Optional[FleetSpotOptionsArgs] = None,
          tags: Optional[Mapping[str, str]] = None,
          target_capacity_specification: Optional[FleetTargetCapacitySpecificationArgs] = None,
          terminate_instances: Optional[bool] = None,
          terminate_instances_with_expiration: Optional[bool] = None,
          type: Optional[str] = None)
@overload
def Fleet(resource_name: str,
          args: FleetArgs,
          opts: Optional[ResourceOptions] = None)
func NewFleet(ctx *Context, name string, args FleetArgs, opts ...ResourceOption) (*Fleet, error)
public Fleet(string name, FleetArgs args, CustomResourceOptions? opts = null)
public Fleet(String name, FleetArgs args)
public Fleet(String name, FleetArgs args, CustomResourceOptions options)
type: aws:ec2:Fleet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FleetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args FleetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args FleetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FleetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FleetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Fleet Resource Properties

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

Inputs

The Fleet resource accepts the following input properties:

LaunchTemplateConfig Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigArgs

Nested argument containing EC2 Launch Template configurations. Defined below.

TargetCapacitySpecification Pulumi.Aws.Ec2.Inputs.FleetTargetCapacitySpecificationArgs

Nested argument containing target capacity configurations. Defined below.

Context string

Reserved.

ExcessCapacityTerminationPolicy string

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

OnDemandOptions Pulumi.Aws.Ec2.Inputs.FleetOnDemandOptionsArgs

Nested argument containing On-Demand configurations. Defined below.

ReplaceUnhealthyInstances bool

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

SpotOptions Pulumi.Aws.Ec2.Inputs.FleetSpotOptionsArgs

Nested argument containing Spot configurations. Defined below.

Tags Dictionary<string, string>

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TerminateInstances bool

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

TerminateInstancesWithExpiration bool

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

Type string

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

LaunchTemplateConfig FleetLaunchTemplateConfigArgs

Nested argument containing EC2 Launch Template configurations. Defined below.

TargetCapacitySpecification FleetTargetCapacitySpecificationArgs

Nested argument containing target capacity configurations. Defined below.

Context string

Reserved.

ExcessCapacityTerminationPolicy string

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

OnDemandOptions FleetOnDemandOptionsArgs

Nested argument containing On-Demand configurations. Defined below.

ReplaceUnhealthyInstances bool

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

SpotOptions FleetSpotOptionsArgs

Nested argument containing Spot configurations. Defined below.

Tags map[string]string

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TerminateInstances bool

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

TerminateInstancesWithExpiration bool

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

Type string

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

launchTemplateConfig FleetLaunchTemplateConfigArgs

Nested argument containing EC2 Launch Template configurations. Defined below.

targetCapacitySpecification FleetTargetCapacitySpecificationArgs

Nested argument containing target capacity configurations. Defined below.

context String

Reserved.

excessCapacityTerminationPolicy String

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

onDemandOptions FleetOnDemandOptionsArgs

Nested argument containing On-Demand configurations. Defined below.

replaceUnhealthyInstances Boolean

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

spotOptions FleetSpotOptionsArgs

Nested argument containing Spot configurations. Defined below.

tags Map<String,String>

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

terminateInstances Boolean

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

terminateInstancesWithExpiration Boolean

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

type String

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

launchTemplateConfig FleetLaunchTemplateConfigArgs

Nested argument containing EC2 Launch Template configurations. Defined below.

targetCapacitySpecification FleetTargetCapacitySpecificationArgs

Nested argument containing target capacity configurations. Defined below.

context string

Reserved.

excessCapacityTerminationPolicy string

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

onDemandOptions FleetOnDemandOptionsArgs

Nested argument containing On-Demand configurations. Defined below.

replaceUnhealthyInstances boolean

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

spotOptions FleetSpotOptionsArgs

Nested argument containing Spot configurations. Defined below.

tags {[key: string]: string}

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

terminateInstances boolean

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

terminateInstancesWithExpiration boolean

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

type string

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

launch_template_config FleetLaunchTemplateConfigArgs

Nested argument containing EC2 Launch Template configurations. Defined below.

target_capacity_specification FleetTargetCapacitySpecificationArgs

Nested argument containing target capacity configurations. Defined below.

context str

Reserved.

excess_capacity_termination_policy str

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

on_demand_options FleetOnDemandOptionsArgs

Nested argument containing On-Demand configurations. Defined below.

replace_unhealthy_instances bool

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

spot_options FleetSpotOptionsArgs

Nested argument containing Spot configurations. Defined below.

tags Mapping[str, str]

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

terminate_instances bool

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

terminate_instances_with_expiration bool

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

type str

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

launchTemplateConfig Property Map

Nested argument containing EC2 Launch Template configurations. Defined below.

targetCapacitySpecification Property Map

Nested argument containing target capacity configurations. Defined below.

context String

Reserved.

excessCapacityTerminationPolicy String

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

onDemandOptions Property Map

Nested argument containing On-Demand configurations. Defined below.

replaceUnhealthyInstances Boolean

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

spotOptions Property Map

Nested argument containing Spot configurations. Defined below.

tags Map<String>

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

terminateInstances Boolean

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

terminateInstancesWithExpiration Boolean

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

type String

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

Outputs

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

Arn string

The ARN of the fleet

Id string

The provider-assigned unique ID for this managed resource.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Arn string

The ARN of the fleet

Id string

The provider-assigned unique ID for this managed resource.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

The ARN of the fleet

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn string

The ARN of the fleet

id string

The provider-assigned unique ID for this managed resource.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn str

The ARN of the fleet

id str

The provider-assigned unique ID for this managed resource.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

arn String

The ARN of the fleet

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Look up Existing Fleet Resource

Get an existing Fleet 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?: FleetState, opts?: CustomResourceOptions): Fleet
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        context: Optional[str] = None,
        excess_capacity_termination_policy: Optional[str] = None,
        launch_template_config: Optional[FleetLaunchTemplateConfigArgs] = None,
        on_demand_options: Optional[FleetOnDemandOptionsArgs] = None,
        replace_unhealthy_instances: Optional[bool] = None,
        spot_options: Optional[FleetSpotOptionsArgs] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        target_capacity_specification: Optional[FleetTargetCapacitySpecificationArgs] = None,
        terminate_instances: Optional[bool] = None,
        terminate_instances_with_expiration: Optional[bool] = None,
        type: Optional[str] = None) -> Fleet
func GetFleet(ctx *Context, name string, id IDInput, state *FleetState, opts ...ResourceOption) (*Fleet, error)
public static Fleet Get(string name, Input<string> id, FleetState? state, CustomResourceOptions? opts = null)
public static Fleet get(String name, Output<String> id, FleetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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:
Arn string

The ARN of the fleet

Context string

Reserved.

ExcessCapacityTerminationPolicy string

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

LaunchTemplateConfig Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigArgs

Nested argument containing EC2 Launch Template configurations. Defined below.

OnDemandOptions Pulumi.Aws.Ec2.Inputs.FleetOnDemandOptionsArgs

Nested argument containing On-Demand configurations. Defined below.

ReplaceUnhealthyInstances bool

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

SpotOptions Pulumi.Aws.Ec2.Inputs.FleetSpotOptionsArgs

Nested argument containing Spot configurations. Defined below.

Tags Dictionary<string, string>

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

TargetCapacitySpecification Pulumi.Aws.Ec2.Inputs.FleetTargetCapacitySpecificationArgs

Nested argument containing target capacity configurations. Defined below.

TerminateInstances bool

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

TerminateInstancesWithExpiration bool

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

Type string

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

Arn string

The ARN of the fleet

Context string

Reserved.

ExcessCapacityTerminationPolicy string

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

LaunchTemplateConfig FleetLaunchTemplateConfigArgs

Nested argument containing EC2 Launch Template configurations. Defined below.

OnDemandOptions FleetOnDemandOptionsArgs

Nested argument containing On-Demand configurations. Defined below.

ReplaceUnhealthyInstances bool

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

SpotOptions FleetSpotOptionsArgs

Nested argument containing Spot configurations. Defined below.

Tags map[string]string

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

TargetCapacitySpecification FleetTargetCapacitySpecificationArgs

Nested argument containing target capacity configurations. Defined below.

TerminateInstances bool

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

TerminateInstancesWithExpiration bool

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

Type string

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

arn String

The ARN of the fleet

context String

Reserved.

excessCapacityTerminationPolicy String

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

launchTemplateConfig FleetLaunchTemplateConfigArgs

Nested argument containing EC2 Launch Template configurations. Defined below.

onDemandOptions FleetOnDemandOptionsArgs

Nested argument containing On-Demand configurations. Defined below.

replaceUnhealthyInstances Boolean

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

spotOptions FleetSpotOptionsArgs

Nested argument containing Spot configurations. Defined below.

tags Map<String,String>

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

targetCapacitySpecification FleetTargetCapacitySpecificationArgs

Nested argument containing target capacity configurations. Defined below.

terminateInstances Boolean

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

terminateInstancesWithExpiration Boolean

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

type String

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

arn string

The ARN of the fleet

context string

Reserved.

excessCapacityTerminationPolicy string

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

launchTemplateConfig FleetLaunchTemplateConfigArgs

Nested argument containing EC2 Launch Template configurations. Defined below.

onDemandOptions FleetOnDemandOptionsArgs

Nested argument containing On-Demand configurations. Defined below.

replaceUnhealthyInstances boolean

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

spotOptions FleetSpotOptionsArgs

Nested argument containing Spot configurations. Defined below.

tags {[key: string]: string}

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

targetCapacitySpecification FleetTargetCapacitySpecificationArgs

Nested argument containing target capacity configurations. Defined below.

terminateInstances boolean

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

terminateInstancesWithExpiration boolean

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

type string

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

arn str

The ARN of the fleet

context str

Reserved.

excess_capacity_termination_policy str

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

launch_template_config FleetLaunchTemplateConfigArgs

Nested argument containing EC2 Launch Template configurations. Defined below.

on_demand_options FleetOnDemandOptionsArgs

Nested argument containing On-Demand configurations. Defined below.

replace_unhealthy_instances bool

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

spot_options FleetSpotOptionsArgs

Nested argument containing Spot configurations. Defined below.

tags Mapping[str, str]

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

target_capacity_specification FleetTargetCapacitySpecificationArgs

Nested argument containing target capacity configurations. Defined below.

terminate_instances bool

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

terminate_instances_with_expiration bool

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

type str

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

arn String

The ARN of the fleet

context String

Reserved.

excessCapacityTerminationPolicy String

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination.

launchTemplateConfig Property Map

Nested argument containing EC2 Launch Template configurations. Defined below.

onDemandOptions Property Map

Nested argument containing On-Demand configurations. Defined below.

replaceUnhealthyInstances Boolean

Whether EC2 Fleet should replace unhealthy instances. Defaults to false.

spotOptions Property Map

Nested argument containing Spot configurations. Defined below.

tags Map<String>

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

targetCapacitySpecification Property Map

Nested argument containing target capacity configurations. Defined below.

terminateInstances Boolean

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

terminateInstancesWithExpiration Boolean

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

type String

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request. Defaults to maintain.

Supporting Types

FleetLaunchTemplateConfig

LaunchTemplateSpecification Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigLaunchTemplateSpecification

Nested argument containing EC2 Launch Template to use. Defined below.

Overrides List<Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverride>

Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.

LaunchTemplateSpecification FleetLaunchTemplateConfigLaunchTemplateSpecification

Nested argument containing EC2 Launch Template to use. Defined below.

Overrides []FleetLaunchTemplateConfigOverride

Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.

launchTemplateSpecification FleetLaunchTemplateConfigLaunchTemplateSpecification

Nested argument containing EC2 Launch Template to use. Defined below.

overrides List<FleetLaunchTemplateConfigOverride>

Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.

launchTemplateSpecification FleetLaunchTemplateConfigLaunchTemplateSpecification

Nested argument containing EC2 Launch Template to use. Defined below.

overrides FleetLaunchTemplateConfigOverride[]

Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.

launch_template_specification FleetLaunchTemplateConfigLaunchTemplateSpecification

Nested argument containing EC2 Launch Template to use. Defined below.

overrides Sequence[FleetLaunchTemplateConfigOverride]

Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.

launchTemplateSpecification Property Map

Nested argument containing EC2 Launch Template to use. Defined below.

overrides List<Property Map>

Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.

FleetLaunchTemplateConfigLaunchTemplateSpecification

Version string

Version number of the launch template.

LaunchTemplateId string

ID of the launch template.

LaunchTemplateName string

Name of the launch template.

Version string

Version number of the launch template.

LaunchTemplateId string

ID of the launch template.

LaunchTemplateName string

Name of the launch template.

version String

Version number of the launch template.

launchTemplateId String

ID of the launch template.

launchTemplateName String

Name of the launch template.

version string

Version number of the launch template.

launchTemplateId string

ID of the launch template.

launchTemplateName string

Name of the launch template.

version str

Version number of the launch template.

launch_template_id str

ID of the launch template.

launch_template_name str

Name of the launch template.

version String

Version number of the launch template.

launchTemplateId String

ID of the launch template.

launchTemplateName String

Name of the launch template.

FleetLaunchTemplateConfigOverride

AvailabilityZone string

Availability Zone in which to launch the instances.

InstanceRequirements Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirements

Override the instance type in the Launch Template with instance types that satisfy the requirements.

InstanceType string

Instance type.

MaxPrice string

Maximum price per unit hour that you are willing to pay for a Spot Instance.

Priority double

Priority for the launch template override. If on_demand_options allocation_strategy is set to prioritized, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0.

SubnetId string

ID of the subnet in which to launch the instances.

WeightedCapacity double

Number of units provided by the specified instance type.

AvailabilityZone string

Availability Zone in which to launch the instances.

InstanceRequirements FleetLaunchTemplateConfigOverrideInstanceRequirements

Override the instance type in the Launch Template with instance types that satisfy the requirements.

InstanceType string

Instance type.

MaxPrice string

Maximum price per unit hour that you are willing to pay for a Spot Instance.

Priority float64

Priority for the launch template override. If on_demand_options allocation_strategy is set to prioritized, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0.

SubnetId string

ID of the subnet in which to launch the instances.

WeightedCapacity float64

Number of units provided by the specified instance type.

availabilityZone String

Availability Zone in which to launch the instances.

instanceRequirements FleetLaunchTemplateConfigOverrideInstanceRequirements

Override the instance type in the Launch Template with instance types that satisfy the requirements.

instanceType String

Instance type.

maxPrice String

Maximum price per unit hour that you are willing to pay for a Spot Instance.

priority Double

Priority for the launch template override. If on_demand_options allocation_strategy is set to prioritized, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0.

subnetId String

ID of the subnet in which to launch the instances.

weightedCapacity Double

Number of units provided by the specified instance type.

availabilityZone string

Availability Zone in which to launch the instances.

instanceRequirements FleetLaunchTemplateConfigOverrideInstanceRequirements

Override the instance type in the Launch Template with instance types that satisfy the requirements.

instanceType string

Instance type.

maxPrice string

Maximum price per unit hour that you are willing to pay for a Spot Instance.

priority number

Priority for the launch template override. If on_demand_options allocation_strategy is set to prioritized, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0.

subnetId string

ID of the subnet in which to launch the instances.

weightedCapacity number

Number of units provided by the specified instance type.

availability_zone str

Availability Zone in which to launch the instances.

instance_requirements FleetLaunchTemplateConfigOverrideInstanceRequirements

Override the instance type in the Launch Template with instance types that satisfy the requirements.

instance_type str

Instance type.

max_price str

Maximum price per unit hour that you are willing to pay for a Spot Instance.

priority float

Priority for the launch template override. If on_demand_options allocation_strategy is set to prioritized, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0.

subnet_id str

ID of the subnet in which to launch the instances.

weighted_capacity float

Number of units provided by the specified instance type.

availabilityZone String

Availability Zone in which to launch the instances.

instanceRequirements Property Map

Override the instance type in the Launch Template with instance types that satisfy the requirements.

instanceType String

Instance type.

maxPrice String

Maximum price per unit hour that you are willing to pay for a Spot Instance.

priority Number

Priority for the launch template override. If on_demand_options allocation_strategy is set to prioritized, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity. The highest priority is launched first. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. Valid values are whole numbers starting at 0.

subnetId String

ID of the subnet in which to launch the instances.

weightedCapacity Number

Number of units provided by the specified instance type.

FleetLaunchTemplateConfigOverrideInstanceRequirements

MemoryMib Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib

Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.

VcpuCount Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount

Block describing the minimum and maximum number of vCPUs. Default is no maximum.

AcceleratorCount Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount

Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.

AcceleratorManufacturers List<string>

List of accelerator manufacturer names. Default is any manufacturer.

AcceleratorNames List<string>

List of accelerator names. Default is any acclerator.

AcceleratorTotalMemoryMib Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib

Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.

AcceleratorTypes List<string>

List of accelerator types. Default is any accelerator type.

BareMetal string

Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded.

BaselineEbsBandwidthMbps Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps

Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.

BurstablePerformance string

Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded.

CpuManufacturers List<string>

List of CPU manufacturer names. Default is any manufacturer.

ExcludedInstanceTypes List<string>

List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples: c5*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.

InstanceGenerations List<string>

List of instance generation names. Default is any generation.

LocalStorage string

Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.

LocalStorageTypes List<string>

List of local storage type names. Default any storage type.

MemoryGibPerVcpu Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu

Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.

NetworkInterfaceCount Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount

Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.

OnDemandMaxPricePercentageOverLowestPrice int

The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

RequireHibernateSupport bool

Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.

SpotMaxPricePercentageOverLowestPrice int

The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100.

TotalLocalStorageGb Pulumi.Aws.Ec2.Inputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb

Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.

MemoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib

Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.

VcpuCount FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount

Block describing the minimum and maximum number of vCPUs. Default is no maximum.

AcceleratorCount FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount

Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.

AcceleratorManufacturers []string

List of accelerator manufacturer names. Default is any manufacturer.

AcceleratorNames []string

List of accelerator names. Default is any acclerator.

AcceleratorTotalMemoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib

Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.

AcceleratorTypes []string

List of accelerator types. Default is any accelerator type.

BareMetal string

Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded.

BaselineEbsBandwidthMbps FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps

Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.

BurstablePerformance string

Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded.

CpuManufacturers []string

List of CPU manufacturer names. Default is any manufacturer.

ExcludedInstanceTypes []string

List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples: c5*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.

InstanceGenerations []string

List of instance generation names. Default is any generation.

LocalStorage string

Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.

LocalStorageTypes []string

List of local storage type names. Default any storage type.

MemoryGibPerVcpu FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu

Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.

NetworkInterfaceCount FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount

Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.

OnDemandMaxPricePercentageOverLowestPrice int

The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

RequireHibernateSupport bool

Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.

SpotMaxPricePercentageOverLowestPrice int

The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100.

TotalLocalStorageGb FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb

Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.

memoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib

Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.

vcpuCount FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount

Block describing the minimum and maximum number of vCPUs. Default is no maximum.

acceleratorCount FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount

Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.

acceleratorManufacturers List<String>

List of accelerator manufacturer names. Default is any manufacturer.

acceleratorNames List<String>

List of accelerator names. Default is any acclerator.

acceleratorTotalMemoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib

Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.

acceleratorTypes List<String>

List of accelerator types. Default is any accelerator type.

bareMetal String

Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded.

baselineEbsBandwidthMbps FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps

Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.

burstablePerformance String

Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded.

cpuManufacturers List<String>

List of CPU manufacturer names. Default is any manufacturer.

excludedInstanceTypes List<String>

List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples: c5*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.

instanceGenerations List<String>

List of instance generation names. Default is any generation.

localStorage String

Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.

localStorageTypes List<String>

List of local storage type names. Default any storage type.

memoryGibPerVcpu FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu

Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.

networkInterfaceCount FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount

Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.

onDemandMaxPricePercentageOverLowestPrice Integer

The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

requireHibernateSupport Boolean

Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.

spotMaxPricePercentageOverLowestPrice Integer

The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100.

totalLocalStorageGb FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb

Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.

memoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib

Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.

vcpuCount FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount

Block describing the minimum and maximum number of vCPUs. Default is no maximum.

acceleratorCount FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount

Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.

acceleratorManufacturers string[]

List of accelerator manufacturer names. Default is any manufacturer.

acceleratorNames string[]

List of accelerator names. Default is any acclerator.

acceleratorTotalMemoryMib FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib

Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.

acceleratorTypes string[]

List of accelerator types. Default is any accelerator type.

bareMetal string

Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded.

baselineEbsBandwidthMbps FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps

Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.

burstablePerformance string

Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded.

cpuManufacturers string[]

List of CPU manufacturer names. Default is any manufacturer.

excludedInstanceTypes string[]

List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples: c5*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.

instanceGenerations string[]

List of instance generation names. Default is any generation.

localStorage string

Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.

localStorageTypes string[]

List of local storage type names. Default any storage type.

memoryGibPerVcpu FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu

Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.

networkInterfaceCount FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount

Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.

onDemandMaxPricePercentageOverLowestPrice number

The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

requireHibernateSupport boolean

Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.

spotMaxPricePercentageOverLowestPrice number

The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100.

totalLocalStorageGb FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb

Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.

memory_mib FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib

Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.

vcpu_count FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount

Block describing the minimum and maximum number of vCPUs. Default is no maximum.

accelerator_count FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount

Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.

accelerator_manufacturers Sequence[str]

List of accelerator manufacturer names. Default is any manufacturer.

accelerator_names Sequence[str]

List of accelerator names. Default is any acclerator.

accelerator_total_memory_mib FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib

Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.

accelerator_types Sequence[str]

List of accelerator types. Default is any accelerator type.

bare_metal str

Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded.

baseline_ebs_bandwidth_mbps FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps

Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.

burstable_performance str

Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded.

cpu_manufacturers Sequence[str]

List of CPU manufacturer names. Default is any manufacturer.

excluded_instance_types Sequence[str]

List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples: c5*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.

instance_generations Sequence[str]

List of instance generation names. Default is any generation.

local_storage str

Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.

local_storage_types Sequence[str]

List of local storage type names. Default any storage type.

memory_gib_per_vcpu FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu

Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.

network_interface_count FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount

Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.

on_demand_max_price_percentage_over_lowest_price int

The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

require_hibernate_support bool

Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.

spot_max_price_percentage_over_lowest_price int

The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100.

total_local_storage_gb FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb

Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.

memoryMib Property Map

Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.

vcpuCount Property Map

Block describing the minimum and maximum number of vCPUs. Default is no maximum.

acceleratorCount Property Map

Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.

acceleratorManufacturers List<String>

List of accelerator manufacturer names. Default is any manufacturer.

acceleratorNames List<String>

List of accelerator names. Default is any acclerator.

acceleratorTotalMemoryMib Property Map

Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.

acceleratorTypes List<String>

List of accelerator types. Default is any accelerator type.

bareMetal String

Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded.

baselineEbsBandwidthMbps Property Map

Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.

burstablePerformance String

Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded.

cpuManufacturers List<String>

List of CPU manufacturer names. Default is any manufacturer.

excludedInstanceTypes List<String>

List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*). The following are examples: c5*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.

instanceGenerations List<String>

List of instance generation names. Default is any generation.

localStorage String

Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.

localStorageTypes List<String>

List of local storage type names. Default any storage type.

memoryGibPerVcpu Property Map

Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.

networkInterfaceCount Property Map

Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.

onDemandMaxPricePercentageOverLowestPrice Number

The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.

requireHibernateSupport Boolean

Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.

spotMaxPricePercentageOverLowestPrice Number

The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100.

totalLocalStorageGb Property Map

Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.

FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorCount

Max int

Maximum.

Min int

Minimum.

Max int

Maximum.

Min int

Minimum.

max Integer

Maximum.

min Integer

Minimum.

max number

Maximum.

min number

Minimum.

max int

Maximum.

min int

Minimum.

max Number

Maximum.

min Number

Minimum.

FleetLaunchTemplateConfigOverrideInstanceRequirementsAcceleratorTotalMemoryMib

Max int

Maximum.

Min int

Minimum.

Max int

Maximum.

Min int

Minimum.

max Integer

Maximum.

min Integer

Minimum.

max number

Maximum.

min number

Minimum.

max int

Maximum.

min int

Minimum.

max Number

Maximum.

min Number

Minimum.

FleetLaunchTemplateConfigOverrideInstanceRequirementsBaselineEbsBandwidthMbps

Max int

Maximum.

Min int

Minimum.

Max int

Maximum.

Min int

Minimum.

max Integer

Maximum.

min Integer

Minimum.

max number

Maximum.

min number

Minimum.

max int

Maximum.

min int

Minimum.

max Number

Maximum.

min Number

Minimum.

FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryGibPerVcpu

Max double

Maximum.

Min double

Minimum.

Max float64

Maximum.

Min float64

Minimum.

max Double

Maximum.

min Double

Minimum.

max number

Maximum.

min number

Minimum.

max float

Maximum.

min float

Minimum.

max Number

Maximum.

min Number

Minimum.

FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib

Min int

Minimum.

Max int

Maximum.

Min int

Minimum.

Max int

Maximum.

min Integer

Minimum.

max Integer

Maximum.

min number

Minimum.

max number

Maximum.

min int

Minimum.

max int

Maximum.

min Number

Minimum.

max Number

Maximum.

FleetLaunchTemplateConfigOverrideInstanceRequirementsNetworkInterfaceCount

Max int

Maximum.

Min int

Minimum.

Max int

Maximum.

Min int

Minimum.

max Integer

Maximum.

min Integer

Minimum.

max number

Maximum.

min number

Minimum.

max int

Maximum.

min int

Minimum.

max Number

Maximum.

min Number

Minimum.

FleetLaunchTemplateConfigOverrideInstanceRequirementsTotalLocalStorageGb

Max double

Maximum.

Min double

Minimum.

Max float64

Maximum.

Min float64

Minimum.

max Double

Maximum.

min Double

Minimum.

max number

Maximum.

min number

Minimum.

max float

Maximum.

min float

Minimum.

max Number

Maximum.

min Number

Minimum.

FleetLaunchTemplateConfigOverrideInstanceRequirementsVcpuCount

Min int

Minimum.

Max int

Maximum.

Min int

Minimum.

Max int

Maximum.

min Integer

Minimum.

max Integer

Maximum.

min number

Minimum.

max number

Maximum.

min int

Minimum.

max int

Maximum.

min Number

Minimum.

max Number

Maximum.

FleetOnDemandOptions

AllocationStrategy string

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

AllocationStrategy string

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

allocationStrategy String

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

allocationStrategy string

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

allocation_strategy str

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

allocationStrategy String

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

FleetSpotOptions

AllocationStrategy string

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

InstanceInterruptionBehavior string

Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.

InstancePoolsToUseCount int

Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.

MaintenanceStrategies Pulumi.Aws.Ec2.Inputs.FleetSpotOptionsMaintenanceStrategies

Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.

AllocationStrategy string

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

InstanceInterruptionBehavior string

Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.

InstancePoolsToUseCount int

Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.

MaintenanceStrategies FleetSpotOptionsMaintenanceStrategies

Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.

allocationStrategy String

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

instanceInterruptionBehavior String

Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.

instancePoolsToUseCount Integer

Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.

maintenanceStrategies FleetSpotOptionsMaintenanceStrategies

Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.

allocationStrategy string

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

instanceInterruptionBehavior string

Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.

instancePoolsToUseCount number

Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.

maintenanceStrategies FleetSpotOptionsMaintenanceStrategies

Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.

allocation_strategy str

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

instance_interruption_behavior str

Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.

instance_pools_to_use_count int

Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.

maintenance_strategies FleetSpotOptionsMaintenanceStrategies

Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.

allocationStrategy String

How to allocate the target capacity across the Spot pools. Valid values: diversified, lowestPrice, capacity-optimized and capacity-optimized-prioritized. Default: lowestPrice.

instanceInterruptionBehavior String

Behavior when a Spot Instance is interrupted. Valid values: hibernate, stop, terminate. Default: terminate.

instancePoolsToUseCount Number

Number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot allocation_strategy is set to lowestPrice. Default: 1.

maintenanceStrategies Property Map

Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.

FleetSpotOptionsMaintenanceStrategies

CapacityRebalance Pulumi.Aws.Ec2.Inputs.FleetSpotOptionsMaintenanceStrategiesCapacityRebalance

Nested argument containing the capacity rebalance for your fleet request. Defined below.

CapacityRebalance FleetSpotOptionsMaintenanceStrategiesCapacityRebalance

Nested argument containing the capacity rebalance for your fleet request. Defined below.

capacityRebalance FleetSpotOptionsMaintenanceStrategiesCapacityRebalance

Nested argument containing the capacity rebalance for your fleet request. Defined below.

capacityRebalance FleetSpotOptionsMaintenanceStrategiesCapacityRebalance

Nested argument containing the capacity rebalance for your fleet request. Defined below.

capacity_rebalance FleetSpotOptionsMaintenanceStrategiesCapacityRebalance

Nested argument containing the capacity rebalance for your fleet request. Defined below.

capacityRebalance Property Map

Nested argument containing the capacity rebalance for your fleet request. Defined below.

FleetSpotOptionsMaintenanceStrategiesCapacityRebalance

ReplacementStrategy string

The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.

ReplacementStrategy string

The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.

replacementStrategy String

The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.

replacementStrategy string

The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.

replacement_strategy str

The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.

replacementStrategy String

The replacement strategy to use. Only available for fleets of type set to maintain. Valid values: launch.

FleetTargetCapacitySpecification

DefaultTargetCapacityType string

Default target capacity type. Valid values: on-demand, spot.

TotalTargetCapacity int

The number of units to request, filled using default_target_capacity_type.

OnDemandTargetCapacity int

The number of On-Demand units to request.

SpotTargetCapacity int

The number of Spot units to request.

TargetCapacityUnitType string

The unit for the target capacity. This can only be done with instance_requirements defined

DefaultTargetCapacityType string

Default target capacity type. Valid values: on-demand, spot.

TotalTargetCapacity int

The number of units to request, filled using default_target_capacity_type.

OnDemandTargetCapacity int

The number of On-Demand units to request.

SpotTargetCapacity int

The number of Spot units to request.

TargetCapacityUnitType string

The unit for the target capacity. This can only be done with instance_requirements defined

defaultTargetCapacityType String

Default target capacity type. Valid values: on-demand, spot.

totalTargetCapacity Integer

The number of units to request, filled using default_target_capacity_type.

onDemandTargetCapacity Integer

The number of On-Demand units to request.

spotTargetCapacity Integer

The number of Spot units to request.

targetCapacityUnitType String

The unit for the target capacity. This can only be done with instance_requirements defined

defaultTargetCapacityType string

Default target capacity type. Valid values: on-demand, spot.

totalTargetCapacity number

The number of units to request, filled using default_target_capacity_type.

onDemandTargetCapacity number

The number of On-Demand units to request.

spotTargetCapacity number

The number of Spot units to request.

targetCapacityUnitType string

The unit for the target capacity. This can only be done with instance_requirements defined

default_target_capacity_type str

Default target capacity type. Valid values: on-demand, spot.

total_target_capacity int

The number of units to request, filled using default_target_capacity_type.

on_demand_target_capacity int

The number of On-Demand units to request.

spot_target_capacity int

The number of Spot units to request.

target_capacity_unit_type str

The unit for the target capacity. This can only be done with instance_requirements defined

defaultTargetCapacityType String

Default target capacity type. Valid values: on-demand, spot.

totalTargetCapacity Number

The number of units to request, filled using default_target_capacity_type.

onDemandTargetCapacity Number

The number of On-Demand units to request.

spotTargetCapacity Number

The number of Spot units to request.

targetCapacityUnitType String

The unit for the target capacity. This can only be done with instance_requirements defined

Import

aws_ec2_fleet can be imported by using the Fleet identifier, e.g.,

 $ pulumi import aws:ec2/fleet:Fleet example fleet-b9b55d27-c5fc-41ac-a6f3-48fcc91f080c

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.