LaunchTemplate

Provides an EC2 launch template resource. Can be used to create instances or auto scaling groups.

Example Usage

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

	private static string ReadFileBase64(string path) {
		return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)))
	}

return await Deployment.RunAsync(() => 
{
    var foo = new Aws.Ec2.LaunchTemplate("foo", new()
    {
        BlockDeviceMappings = new[]
        {
            new Aws.Ec2.Inputs.LaunchTemplateBlockDeviceMappingArgs
            {
                DeviceName = "/dev/sda1",
                Ebs = new Aws.Ec2.Inputs.LaunchTemplateBlockDeviceMappingEbsArgs
                {
                    VolumeSize = 20,
                },
            },
        },
        CapacityReservationSpecification = new Aws.Ec2.Inputs.LaunchTemplateCapacityReservationSpecificationArgs
        {
            CapacityReservationPreference = "open",
        },
        CpuOptions = new Aws.Ec2.Inputs.LaunchTemplateCpuOptionsArgs
        {
            CoreCount = 4,
            ThreadsPerCore = 2,
        },
        CreditSpecification = new Aws.Ec2.Inputs.LaunchTemplateCreditSpecificationArgs
        {
            CpuCredits = "standard",
        },
        DisableApiStop = true,
        DisableApiTermination = true,
        EbsOptimized = "true",
        ElasticGpuSpecifications = new[]
        {
            new Aws.Ec2.Inputs.LaunchTemplateElasticGpuSpecificationArgs
            {
                Type = "test",
            },
        },
        ElasticInferenceAccelerator = new Aws.Ec2.Inputs.LaunchTemplateElasticInferenceAcceleratorArgs
        {
            Type = "eia1.medium",
        },
        IamInstanceProfile = new Aws.Ec2.Inputs.LaunchTemplateIamInstanceProfileArgs
        {
            Name = "test",
        },
        ImageId = "ami-test",
        InstanceInitiatedShutdownBehavior = "terminate",
        InstanceMarketOptions = new Aws.Ec2.Inputs.LaunchTemplateInstanceMarketOptionsArgs
        {
            MarketType = "spot",
        },
        InstanceType = "t2.micro",
        KernelId = "test",
        KeyName = "test",
        LicenseSpecifications = new[]
        {
            new Aws.Ec2.Inputs.LaunchTemplateLicenseSpecificationArgs
            {
                LicenseConfigurationArn = "arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef",
            },
        },
        MetadataOptions = new Aws.Ec2.Inputs.LaunchTemplateMetadataOptionsArgs
        {
            HttpEndpoint = "enabled",
            HttpTokens = "required",
            HttpPutResponseHopLimit = 1,
            InstanceMetadataTags = "enabled",
        },
        Monitoring = new Aws.Ec2.Inputs.LaunchTemplateMonitoringArgs
        {
            Enabled = true,
        },
        NetworkInterfaces = new[]
        {
            new Aws.Ec2.Inputs.LaunchTemplateNetworkInterfaceArgs
            {
                AssociatePublicIpAddress = "true",
            },
        },
        Placement = new Aws.Ec2.Inputs.LaunchTemplatePlacementArgs
        {
            AvailabilityZone = "us-west-2a",
        },
        RamDiskId = "test",
        VpcSecurityGroupIds = new[]
        {
            "sg-12345678",
        },
        TagSpecifications = new[]
        {
            new Aws.Ec2.Inputs.LaunchTemplateTagSpecificationArgs
            {
                ResourceType = "instance",
                Tags = 
                {
                    { "Name", "test" },
                },
            },
        },
        UserData = ReadFileBase64($"{path.Module}/example.sh"),
    });

});
package main

import (
	"encoding/base64"
	"fmt"
	"io/ioutil"

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

func filebase64OrPanic(path string) pulumi.StringPtrInput {
	if fileData, err := ioutil.ReadFile(path); err == nil {
		return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:]))
	} else {
		panic(err.Error())
	}
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ec2.NewLaunchTemplate(ctx, "foo", &ec2.LaunchTemplateArgs{
			BlockDeviceMappings: ec2.LaunchTemplateBlockDeviceMappingArray{
				&ec2.LaunchTemplateBlockDeviceMappingArgs{
					DeviceName: pulumi.String("/dev/sda1"),
					Ebs: &ec2.LaunchTemplateBlockDeviceMappingEbsArgs{
						VolumeSize: pulumi.Int(20),
					},
				},
			},
			CapacityReservationSpecification: &ec2.LaunchTemplateCapacityReservationSpecificationArgs{
				CapacityReservationPreference: pulumi.String("open"),
			},
			CpuOptions: &ec2.LaunchTemplateCpuOptionsArgs{
				CoreCount:      pulumi.Int(4),
				ThreadsPerCore: pulumi.Int(2),
			},
			CreditSpecification: &ec2.LaunchTemplateCreditSpecificationArgs{
				CpuCredits: pulumi.String("standard"),
			},
			DisableApiStop:        pulumi.Bool(true),
			DisableApiTermination: pulumi.Bool(true),
			EbsOptimized:          pulumi.String("true"),
			ElasticGpuSpecifications: ec2.LaunchTemplateElasticGpuSpecificationArray{
				&ec2.LaunchTemplateElasticGpuSpecificationArgs{
					Type: pulumi.String("test"),
				},
			},
			ElasticInferenceAccelerator: &ec2.LaunchTemplateElasticInferenceAcceleratorArgs{
				Type: pulumi.String("eia1.medium"),
			},
			IamInstanceProfile: &ec2.LaunchTemplateIamInstanceProfileArgs{
				Name: pulumi.String("test"),
			},
			ImageId:                           pulumi.String("ami-test"),
			InstanceInitiatedShutdownBehavior: pulumi.String("terminate"),
			InstanceMarketOptions: &ec2.LaunchTemplateInstanceMarketOptionsArgs{
				MarketType: pulumi.String("spot"),
			},
			InstanceType: pulumi.String("t2.micro"),
			KernelId:     pulumi.String("test"),
			KeyName:      pulumi.String("test"),
			LicenseSpecifications: ec2.LaunchTemplateLicenseSpecificationArray{
				&ec2.LaunchTemplateLicenseSpecificationArgs{
					LicenseConfigurationArn: pulumi.String("arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef"),
				},
			},
			MetadataOptions: &ec2.LaunchTemplateMetadataOptionsArgs{
				HttpEndpoint:            pulumi.String("enabled"),
				HttpTokens:              pulumi.String("required"),
				HttpPutResponseHopLimit: pulumi.Int(1),
				InstanceMetadataTags:    pulumi.String("enabled"),
			},
			Monitoring: &ec2.LaunchTemplateMonitoringArgs{
				Enabled: pulumi.Bool(true),
			},
			NetworkInterfaces: ec2.LaunchTemplateNetworkInterfaceArray{
				&ec2.LaunchTemplateNetworkInterfaceArgs{
					AssociatePublicIpAddress: pulumi.String("true"),
				},
			},
			Placement: &ec2.LaunchTemplatePlacementArgs{
				AvailabilityZone: pulumi.String("us-west-2a"),
			},
			RamDiskId: pulumi.String("test"),
			VpcSecurityGroupIds: pulumi.StringArray{
				pulumi.String("sg-12345678"),
			},
			TagSpecifications: ec2.LaunchTemplateTagSpecificationArray{
				&ec2.LaunchTemplateTagSpecificationArgs{
					ResourceType: pulumi.String("instance"),
					Tags: pulumi.StringMap{
						"Name": pulumi.String("test"),
					},
				},
			},
			UserData: filebase64OrPanic(fmt.Sprintf("%v/example.sh", path.Module)),
		})
		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.LaunchTemplate;
import com.pulumi.aws.ec2.LaunchTemplateArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateBlockDeviceMappingArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateBlockDeviceMappingEbsArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateCapacityReservationSpecificationArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateCpuOptionsArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateCreditSpecificationArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateElasticGpuSpecificationArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateElasticInferenceAcceleratorArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateIamInstanceProfileArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateInstanceMarketOptionsArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateLicenseSpecificationArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateMetadataOptionsArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateMonitoringArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateNetworkInterfaceArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplatePlacementArgs;
import com.pulumi.aws.ec2.inputs.LaunchTemplateTagSpecificationArgs;
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 foo = new LaunchTemplate("foo", LaunchTemplateArgs.builder()        
            .blockDeviceMappings(LaunchTemplateBlockDeviceMappingArgs.builder()
                .deviceName("/dev/sda1")
                .ebs(LaunchTemplateBlockDeviceMappingEbsArgs.builder()
                    .volumeSize(20)
                    .build())
                .build())
            .capacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationArgs.builder()
                .capacityReservationPreference("open")
                .build())
            .cpuOptions(LaunchTemplateCpuOptionsArgs.builder()
                .coreCount(4)
                .threadsPerCore(2)
                .build())
            .creditSpecification(LaunchTemplateCreditSpecificationArgs.builder()
                .cpuCredits("standard")
                .build())
            .disableApiStop(true)
            .disableApiTermination(true)
            .ebsOptimized(true)
            .elasticGpuSpecifications(LaunchTemplateElasticGpuSpecificationArgs.builder()
                .type("test")
                .build())
            .elasticInferenceAccelerator(LaunchTemplateElasticInferenceAcceleratorArgs.builder()
                .type("eia1.medium")
                .build())
            .iamInstanceProfile(LaunchTemplateIamInstanceProfileArgs.builder()
                .name("test")
                .build())
            .imageId("ami-test")
            .instanceInitiatedShutdownBehavior("terminate")
            .instanceMarketOptions(LaunchTemplateInstanceMarketOptionsArgs.builder()
                .marketType("spot")
                .build())
            .instanceType("t2.micro")
            .kernelId("test")
            .keyName("test")
            .licenseSpecifications(LaunchTemplateLicenseSpecificationArgs.builder()
                .licenseConfigurationArn("arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef")
                .build())
            .metadataOptions(LaunchTemplateMetadataOptionsArgs.builder()
                .httpEndpoint("enabled")
                .httpTokens("required")
                .httpPutResponseHopLimit(1)
                .instanceMetadataTags("enabled")
                .build())
            .monitoring(LaunchTemplateMonitoringArgs.builder()
                .enabled(true)
                .build())
            .networkInterfaces(LaunchTemplateNetworkInterfaceArgs.builder()
                .associatePublicIpAddress(true)
                .build())
            .placement(LaunchTemplatePlacementArgs.builder()
                .availabilityZone("us-west-2a")
                .build())
            .ramDiskId("test")
            .vpcSecurityGroupIds("sg-12345678")
            .tagSpecifications(LaunchTemplateTagSpecificationArgs.builder()
                .resourceType("instance")
                .tags(Map.of("Name", "test"))
                .build())
            .userData(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get(String.format("%s/example.sh", path.module())))))
            .build());

    }
}
import pulumi
import base64
import pulumi_aws as aws

foo = aws.ec2.LaunchTemplate("foo",
    block_device_mappings=[aws.ec2.LaunchTemplateBlockDeviceMappingArgs(
        device_name="/dev/sda1",
        ebs=aws.ec2.LaunchTemplateBlockDeviceMappingEbsArgs(
            volume_size=20,
        ),
    )],
    capacity_reservation_specification=aws.ec2.LaunchTemplateCapacityReservationSpecificationArgs(
        capacity_reservation_preference="open",
    ),
    cpu_options=aws.ec2.LaunchTemplateCpuOptionsArgs(
        core_count=4,
        threads_per_core=2,
    ),
    credit_specification=aws.ec2.LaunchTemplateCreditSpecificationArgs(
        cpu_credits="standard",
    ),
    disable_api_stop=True,
    disable_api_termination=True,
    ebs_optimized="true",
    elastic_gpu_specifications=[aws.ec2.LaunchTemplateElasticGpuSpecificationArgs(
        type="test",
    )],
    elastic_inference_accelerator=aws.ec2.LaunchTemplateElasticInferenceAcceleratorArgs(
        type="eia1.medium",
    ),
    iam_instance_profile=aws.ec2.LaunchTemplateIamInstanceProfileArgs(
        name="test",
    ),
    image_id="ami-test",
    instance_initiated_shutdown_behavior="terminate",
    instance_market_options=aws.ec2.LaunchTemplateInstanceMarketOptionsArgs(
        market_type="spot",
    ),
    instance_type="t2.micro",
    kernel_id="test",
    key_name="test",
    license_specifications=[aws.ec2.LaunchTemplateLicenseSpecificationArgs(
        license_configuration_arn="arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef",
    )],
    metadata_options=aws.ec2.LaunchTemplateMetadataOptionsArgs(
        http_endpoint="enabled",
        http_tokens="required",
        http_put_response_hop_limit=1,
        instance_metadata_tags="enabled",
    ),
    monitoring=aws.ec2.LaunchTemplateMonitoringArgs(
        enabled=True,
    ),
    network_interfaces=[aws.ec2.LaunchTemplateNetworkInterfaceArgs(
        associate_public_ip_address="true",
    )],
    placement=aws.ec2.LaunchTemplatePlacementArgs(
        availability_zone="us-west-2a",
    ),
    ram_disk_id="test",
    vpc_security_group_ids=["sg-12345678"],
    tag_specifications=[aws.ec2.LaunchTemplateTagSpecificationArgs(
        resource_type="instance",
        tags={
            "Name": "test",
        },
    )],
    user_data=(lambda path: base64.b64encode(open(path).read().encode()).decode())(f"{path['module']}/example.sh"))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as fs from "fs";

const foo = new aws.ec2.LaunchTemplate("foo", {
    blockDeviceMappings: [{
        deviceName: "/dev/sda1",
        ebs: {
            volumeSize: 20,
        },
    }],
    capacityReservationSpecification: {
        capacityReservationPreference: "open",
    },
    cpuOptions: {
        coreCount: 4,
        threadsPerCore: 2,
    },
    creditSpecification: {
        cpuCredits: "standard",
    },
    disableApiStop: true,
    disableApiTermination: true,
    ebsOptimized: "true",
    elasticGpuSpecifications: [{
        type: "test",
    }],
    elasticInferenceAccelerator: {
        type: "eia1.medium",
    },
    iamInstanceProfile: {
        name: "test",
    },
    imageId: "ami-test",
    instanceInitiatedShutdownBehavior: "terminate",
    instanceMarketOptions: {
        marketType: "spot",
    },
    instanceType: "t2.micro",
    kernelId: "test",
    keyName: "test",
    licenseSpecifications: [{
        licenseConfigurationArn: "arn:aws:license-manager:eu-west-1:123456789012:license-configuration:lic-0123456789abcdef0123456789abcdef",
    }],
    metadataOptions: {
        httpEndpoint: "enabled",
        httpTokens: "required",
        httpPutResponseHopLimit: 1,
        instanceMetadataTags: "enabled",
    },
    monitoring: {
        enabled: true,
    },
    networkInterfaces: [{
        associatePublicIpAddress: "true",
    }],
    placement: {
        availabilityZone: "us-west-2a",
    },
    ramDiskId: "test",
    vpcSecurityGroupIds: ["sg-12345678"],
    tagSpecifications: [{
        resourceType: "instance",
        tags: {
            Name: "test",
        },
    }],
    userData: Buffer.from(fs.readFileSync(`${path.module}/example.sh`), 'binary').toString('base64'),
});

Coming soon!

Create LaunchTemplate Resource

new LaunchTemplate(name: string, args?: LaunchTemplateArgs, opts?: CustomResourceOptions);
@overload
def LaunchTemplate(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   block_device_mappings: Optional[Sequence[LaunchTemplateBlockDeviceMappingArgs]] = None,
                   capacity_reservation_specification: Optional[LaunchTemplateCapacityReservationSpecificationArgs] = None,
                   cpu_options: Optional[LaunchTemplateCpuOptionsArgs] = None,
                   credit_specification: Optional[LaunchTemplateCreditSpecificationArgs] = None,
                   default_version: Optional[int] = None,
                   description: Optional[str] = None,
                   disable_api_stop: Optional[bool] = None,
                   disable_api_termination: Optional[bool] = None,
                   ebs_optimized: Optional[str] = None,
                   elastic_gpu_specifications: Optional[Sequence[LaunchTemplateElasticGpuSpecificationArgs]] = None,
                   elastic_inference_accelerator: Optional[LaunchTemplateElasticInferenceAcceleratorArgs] = None,
                   enclave_options: Optional[LaunchTemplateEnclaveOptionsArgs] = None,
                   hibernation_options: Optional[LaunchTemplateHibernationOptionsArgs] = None,
                   iam_instance_profile: Optional[LaunchTemplateIamInstanceProfileArgs] = None,
                   image_id: Optional[str] = None,
                   instance_initiated_shutdown_behavior: Optional[str] = None,
                   instance_market_options: Optional[LaunchTemplateInstanceMarketOptionsArgs] = None,
                   instance_requirements: Optional[LaunchTemplateInstanceRequirementsArgs] = None,
                   instance_type: Optional[str] = None,
                   kernel_id: Optional[str] = None,
                   key_name: Optional[str] = None,
                   license_specifications: Optional[Sequence[LaunchTemplateLicenseSpecificationArgs]] = None,
                   maintenance_options: Optional[LaunchTemplateMaintenanceOptionsArgs] = None,
                   metadata_options: Optional[LaunchTemplateMetadataOptionsArgs] = None,
                   monitoring: Optional[LaunchTemplateMonitoringArgs] = None,
                   name: Optional[str] = None,
                   name_prefix: Optional[str] = None,
                   network_interfaces: Optional[Sequence[LaunchTemplateNetworkInterfaceArgs]] = None,
                   placement: Optional[LaunchTemplatePlacementArgs] = None,
                   private_dns_name_options: Optional[LaunchTemplatePrivateDnsNameOptionsArgs] = None,
                   ram_disk_id: Optional[str] = None,
                   security_group_names: Optional[Sequence[str]] = None,
                   tag_specifications: Optional[Sequence[LaunchTemplateTagSpecificationArgs]] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   update_default_version: Optional[bool] = None,
                   user_data: Optional[str] = None,
                   vpc_security_group_ids: Optional[Sequence[str]] = None)
@overload
def LaunchTemplate(resource_name: str,
                   args: Optional[LaunchTemplateArgs] = None,
                   opts: Optional[ResourceOptions] = None)
func NewLaunchTemplate(ctx *Context, name string, args *LaunchTemplateArgs, opts ...ResourceOption) (*LaunchTemplate, error)
public LaunchTemplate(string name, LaunchTemplateArgs? args = null, CustomResourceOptions? opts = null)
public LaunchTemplate(String name, LaunchTemplateArgs args)
public LaunchTemplate(String name, LaunchTemplateArgs args, CustomResourceOptions options)
type: aws:ec2:LaunchTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args LaunchTemplateArgs
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 LaunchTemplateArgs
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 LaunchTemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LaunchTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args LaunchTemplateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

LaunchTemplate 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 LaunchTemplate resource accepts the following input properties:

BlockDeviceMappings List<Pulumi.Aws.Ec2.Inputs.LaunchTemplateBlockDeviceMappingArgs>

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

CapacityReservationSpecification Pulumi.Aws.Ec2.Inputs.LaunchTemplateCapacityReservationSpecificationArgs

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

CpuOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateCpuOptionsArgs

The CPU options for the instance. See CPU Options below for more details.

CreditSpecification Pulumi.Aws.Ec2.Inputs.LaunchTemplateCreditSpecificationArgs

Customize the credit specification of the instance. See Credit Specification below for more details.

DefaultVersion int

Default Version of the launch template.

Description string

Description of the launch template.

DisableApiStop bool

If true, enables EC2 Instance Stop Protection.

DisableApiTermination bool

If true, enables EC2 Instance Termination Protection

EbsOptimized string

If true, the launched EC2 instance will be EBS-optimized.

ElasticGpuSpecifications List<Pulumi.Aws.Ec2.Inputs.LaunchTemplateElasticGpuSpecificationArgs>

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

ElasticInferenceAccelerator Pulumi.Aws.Ec2.Inputs.LaunchTemplateElasticInferenceAcceleratorArgs

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

EnclaveOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateEnclaveOptionsArgs

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

HibernationOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateHibernationOptionsArgs

The hibernation options for the instance. See Hibernation Options below for more details.

IamInstanceProfile Pulumi.Aws.Ec2.Inputs.LaunchTemplateIamInstanceProfileArgs

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

ImageId string

The AMI from which to launch the instance.

InstanceInitiatedShutdownBehavior string

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

InstanceMarketOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateInstanceMarketOptionsArgs

The market (purchasing) option for the instance. See Market Options below for details.

InstanceRequirements Pulumi.Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsArgs

The attribute requirements for the type of instance. If present then instance_type cannot be present.

InstanceType string

The type of the instance. If present then instance_requirements cannot be present.

KernelId string

The kernel ID.

KeyName string

The key name to use for the instance.

LicenseSpecifications List<Pulumi.Aws.Ec2.Inputs.LaunchTemplateLicenseSpecificationArgs>

A list of license specifications to associate with. See License Specification below for more details.

MaintenanceOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateMaintenanceOptionsArgs

The maintenance options for the instance. See Maintenance Options below for more details.

MetadataOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateMetadataOptionsArgs

Customize the metadata options for the instance. See Metadata Options below for more details.

Monitoring Pulumi.Aws.Ec2.Inputs.LaunchTemplateMonitoringArgs

The monitoring option for the instance. See Monitoring below for more details.

Name string

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

NamePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

NetworkInterfaces List<Pulumi.Aws.Ec2.Inputs.LaunchTemplateNetworkInterfaceArgs>

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

Placement Pulumi.Aws.Ec2.Inputs.LaunchTemplatePlacementArgs

The placement of the instance. See Placement below for more details.

PrivateDnsNameOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplatePrivateDnsNameOptionsArgs

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

RamDiskId string

The ID of the RAM disk.

SecurityGroupNames List<string>

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

TagSpecifications List<Pulumi.Aws.Ec2.Inputs.LaunchTemplateTagSpecificationArgs>

The tags to apply to the resources during launch. See Tag Specifications below for more details.

Tags Dictionary<string, string>

A map of tags to assign to 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.

UpdateDefaultVersion bool

Whether to update Default Version each update. Conflicts with default_version.

UserData string

The base64-encoded user data to provide when launching the instance.

VpcSecurityGroupIds List<string>

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

BlockDeviceMappings []LaunchTemplateBlockDeviceMappingArgs

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

CapacityReservationSpecification LaunchTemplateCapacityReservationSpecificationArgs

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

CpuOptions LaunchTemplateCpuOptionsArgs

The CPU options for the instance. See CPU Options below for more details.

CreditSpecification LaunchTemplateCreditSpecificationArgs

Customize the credit specification of the instance. See Credit Specification below for more details.

DefaultVersion int

Default Version of the launch template.

Description string

Description of the launch template.

DisableApiStop bool

If true, enables EC2 Instance Stop Protection.

DisableApiTermination bool

If true, enables EC2 Instance Termination Protection

EbsOptimized string

If true, the launched EC2 instance will be EBS-optimized.

ElasticGpuSpecifications []LaunchTemplateElasticGpuSpecificationArgs

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

ElasticInferenceAccelerator LaunchTemplateElasticInferenceAcceleratorArgs

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

EnclaveOptions LaunchTemplateEnclaveOptionsArgs

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

HibernationOptions LaunchTemplateHibernationOptionsArgs

The hibernation options for the instance. See Hibernation Options below for more details.

IamInstanceProfile LaunchTemplateIamInstanceProfileArgs

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

ImageId string

The AMI from which to launch the instance.

InstanceInitiatedShutdownBehavior string

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

InstanceMarketOptions LaunchTemplateInstanceMarketOptionsArgs

The market (purchasing) option for the instance. See Market Options below for details.

InstanceRequirements LaunchTemplateInstanceRequirementsArgs

The attribute requirements for the type of instance. If present then instance_type cannot be present.

InstanceType string

The type of the instance. If present then instance_requirements cannot be present.

KernelId string

The kernel ID.

KeyName string

The key name to use for the instance.

LicenseSpecifications []LaunchTemplateLicenseSpecificationArgs

A list of license specifications to associate with. See License Specification below for more details.

MaintenanceOptions LaunchTemplateMaintenanceOptionsArgs

The maintenance options for the instance. See Maintenance Options below for more details.

MetadataOptions LaunchTemplateMetadataOptionsArgs

Customize the metadata options for the instance. See Metadata Options below for more details.

Monitoring LaunchTemplateMonitoringArgs

The monitoring option for the instance. See Monitoring below for more details.

Name string

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

NamePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

NetworkInterfaces []LaunchTemplateNetworkInterfaceArgs

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

Placement LaunchTemplatePlacementArgs

The placement of the instance. See Placement below for more details.

PrivateDnsNameOptions LaunchTemplatePrivateDnsNameOptionsArgs

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

RamDiskId string

The ID of the RAM disk.

SecurityGroupNames []string

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

TagSpecifications []LaunchTemplateTagSpecificationArgs

The tags to apply to the resources during launch. See Tag Specifications below for more details.

Tags map[string]string

A map of tags to assign to 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.

UpdateDefaultVersion bool

Whether to update Default Version each update. Conflicts with default_version.

UserData string

The base64-encoded user data to provide when launching the instance.

VpcSecurityGroupIds []string

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

blockDeviceMappings List<LaunchTemplateBlockDeviceMappingArgs>

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

capacityReservationSpecification LaunchTemplateCapacityReservationSpecificationArgs

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

cpuOptions LaunchTemplateCpuOptionsArgs

The CPU options for the instance. See CPU Options below for more details.

creditSpecification LaunchTemplateCreditSpecificationArgs

Customize the credit specification of the instance. See Credit Specification below for more details.

defaultVersion Integer

Default Version of the launch template.

description String

Description of the launch template.

disableApiStop Boolean

If true, enables EC2 Instance Stop Protection.

disableApiTermination Boolean

If true, enables EC2 Instance Termination Protection

ebsOptimized String

If true, the launched EC2 instance will be EBS-optimized.

elasticGpuSpecifications List<LaunchTemplateElasticGpuSpecificationArgs>

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

elasticInferenceAccelerator LaunchTemplateElasticInferenceAcceleratorArgs

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

enclaveOptions LaunchTemplateEnclaveOptionsArgs

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

hibernationOptions LaunchTemplateHibernationOptionsArgs

The hibernation options for the instance. See Hibernation Options below for more details.

iamInstanceProfile LaunchTemplateIamInstanceProfileArgs

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

imageId String

The AMI from which to launch the instance.

instanceInitiatedShutdownBehavior String

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

instanceMarketOptions LaunchTemplateInstanceMarketOptionsArgs

The market (purchasing) option for the instance. See Market Options below for details.

instanceRequirements LaunchTemplateInstanceRequirementsArgs

The attribute requirements for the type of instance. If present then instance_type cannot be present.

instanceType String

The type of the instance. If present then instance_requirements cannot be present.

kernelId String

The kernel ID.

keyName String

The key name to use for the instance.

licenseSpecifications List<LaunchTemplateLicenseSpecificationArgs>

A list of license specifications to associate with. See License Specification below for more details.

maintenanceOptions LaunchTemplateMaintenanceOptionsArgs

The maintenance options for the instance. See Maintenance Options below for more details.

metadataOptions LaunchTemplateMetadataOptionsArgs

Customize the metadata options for the instance. See Metadata Options below for more details.

monitoring LaunchTemplateMonitoringArgs

The monitoring option for the instance. See Monitoring below for more details.

name String

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

namePrefix String

Creates a unique name beginning with the specified prefix. Conflicts with name.

networkInterfaces List<LaunchTemplateNetworkInterfaceArgs>

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

placement LaunchTemplatePlacementArgs

The placement of the instance. See Placement below for more details.

privateDnsNameOptions LaunchTemplatePrivateDnsNameOptionsArgs

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

ramDiskId String

The ID of the RAM disk.

securityGroupNames List<String>

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

tagSpecifications List<LaunchTemplateTagSpecificationArgs>

The tags to apply to the resources during launch. See Tag Specifications below for more details.

tags Map<String,String>

A map of tags to assign to 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.

updateDefaultVersion Boolean

Whether to update Default Version each update. Conflicts with default_version.

userData String

The base64-encoded user data to provide when launching the instance.

vpcSecurityGroupIds List<String>

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

blockDeviceMappings LaunchTemplateBlockDeviceMappingArgs[]

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

capacityReservationSpecification LaunchTemplateCapacityReservationSpecificationArgs

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

cpuOptions LaunchTemplateCpuOptionsArgs

The CPU options for the instance. See CPU Options below for more details.

creditSpecification LaunchTemplateCreditSpecificationArgs

Customize the credit specification of the instance. See Credit Specification below for more details.

defaultVersion number

Default Version of the launch template.

description string

Description of the launch template.

disableApiStop boolean

If true, enables EC2 Instance Stop Protection.

disableApiTermination boolean

If true, enables EC2 Instance Termination Protection

ebsOptimized string

If true, the launched EC2 instance will be EBS-optimized.

elasticGpuSpecifications LaunchTemplateElasticGpuSpecificationArgs[]

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

elasticInferenceAccelerator LaunchTemplateElasticInferenceAcceleratorArgs

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

enclaveOptions LaunchTemplateEnclaveOptionsArgs

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

hibernationOptions LaunchTemplateHibernationOptionsArgs

The hibernation options for the instance. See Hibernation Options below for more details.

iamInstanceProfile LaunchTemplateIamInstanceProfileArgs

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

imageId string

The AMI from which to launch the instance.

instanceInitiatedShutdownBehavior string

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

instanceMarketOptions LaunchTemplateInstanceMarketOptionsArgs

The market (purchasing) option for the instance. See Market Options below for details.

instanceRequirements LaunchTemplateInstanceRequirementsArgs

The attribute requirements for the type of instance. If present then instance_type cannot be present.

instanceType string

The type of the instance. If present then instance_requirements cannot be present.

kernelId string

The kernel ID.

keyName string

The key name to use for the instance.

licenseSpecifications LaunchTemplateLicenseSpecificationArgs[]

A list of license specifications to associate with. See License Specification below for more details.

maintenanceOptions LaunchTemplateMaintenanceOptionsArgs

The maintenance options for the instance. See Maintenance Options below for more details.

metadataOptions LaunchTemplateMetadataOptionsArgs

Customize the metadata options for the instance. See Metadata Options below for more details.

monitoring LaunchTemplateMonitoringArgs

The monitoring option for the instance. See Monitoring below for more details.

name string

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

namePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

networkInterfaces LaunchTemplateNetworkInterfaceArgs[]

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

placement LaunchTemplatePlacementArgs

The placement of the instance. See Placement below for more details.

privateDnsNameOptions LaunchTemplatePrivateDnsNameOptionsArgs

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

ramDiskId string

The ID of the RAM disk.

securityGroupNames string[]

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

tagSpecifications LaunchTemplateTagSpecificationArgs[]

The tags to apply to the resources during launch. See Tag Specifications below for more details.

tags {[key: string]: string}

A map of tags to assign to 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.

updateDefaultVersion boolean

Whether to update Default Version each update. Conflicts with default_version.

userData string

The base64-encoded user data to provide when launching the instance.

vpcSecurityGroupIds string[]

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

block_device_mappings Sequence[LaunchTemplateBlockDeviceMappingArgs]

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

capacity_reservation_specification LaunchTemplateCapacityReservationSpecificationArgs

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

cpu_options LaunchTemplateCpuOptionsArgs

The CPU options for the instance. See CPU Options below for more details.

credit_specification LaunchTemplateCreditSpecificationArgs

Customize the credit specification of the instance. See Credit Specification below for more details.

default_version int

Default Version of the launch template.

description str

Description of the launch template.

disable_api_stop bool

If true, enables EC2 Instance Stop Protection.

disable_api_termination bool

If true, enables EC2 Instance Termination Protection

ebs_optimized str

If true, the launched EC2 instance will be EBS-optimized.

elastic_gpu_specifications Sequence[LaunchTemplateElasticGpuSpecificationArgs]

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

elastic_inference_accelerator LaunchTemplateElasticInferenceAcceleratorArgs

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

enclave_options LaunchTemplateEnclaveOptionsArgs

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

hibernation_options LaunchTemplateHibernationOptionsArgs

The hibernation options for the instance. See Hibernation Options below for more details.

iam_instance_profile LaunchTemplateIamInstanceProfileArgs

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

image_id str

The AMI from which to launch the instance.

instance_initiated_shutdown_behavior str

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

instance_market_options LaunchTemplateInstanceMarketOptionsArgs

The market (purchasing) option for the instance. See Market Options below for details.

instance_requirements LaunchTemplateInstanceRequirementsArgs

The attribute requirements for the type of instance. If present then instance_type cannot be present.

instance_type str

The type of the instance. If present then instance_requirements cannot be present.

kernel_id str

The kernel ID.

key_name str

The key name to use for the instance.

license_specifications Sequence[LaunchTemplateLicenseSpecificationArgs]

A list of license specifications to associate with. See License Specification below for more details.

maintenance_options LaunchTemplateMaintenanceOptionsArgs

The maintenance options for the instance. See Maintenance Options below for more details.

metadata_options LaunchTemplateMetadataOptionsArgs

Customize the metadata options for the instance. See Metadata Options below for more details.

monitoring LaunchTemplateMonitoringArgs

The monitoring option for the instance. See Monitoring below for more details.

name str

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

name_prefix str

Creates a unique name beginning with the specified prefix. Conflicts with name.

network_interfaces Sequence[LaunchTemplateNetworkInterfaceArgs]

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

placement LaunchTemplatePlacementArgs

The placement of the instance. See Placement below for more details.

private_dns_name_options LaunchTemplatePrivateDnsNameOptionsArgs

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

ram_disk_id str

The ID of the RAM disk.

security_group_names Sequence[str]

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

tag_specifications Sequence[LaunchTemplateTagSpecificationArgs]

The tags to apply to the resources during launch. See Tag Specifications below for more details.

tags Mapping[str, str]

A map of tags to assign to 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.

update_default_version bool

Whether to update Default Version each update. Conflicts with default_version.

user_data str

The base64-encoded user data to provide when launching the instance.

vpc_security_group_ids Sequence[str]

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

blockDeviceMappings List<Property Map>

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

capacityReservationSpecification Property Map

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

cpuOptions Property Map

The CPU options for the instance. See CPU Options below for more details.

creditSpecification Property Map

Customize the credit specification of the instance. See Credit Specification below for more details.

defaultVersion Number

Default Version of the launch template.

description String

Description of the launch template.

disableApiStop Boolean

If true, enables EC2 Instance Stop Protection.

disableApiTermination Boolean

If true, enables EC2 Instance Termination Protection

ebsOptimized String

If true, the launched EC2 instance will be EBS-optimized.

elasticGpuSpecifications List<Property Map>

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

elasticInferenceAccelerator Property Map

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

enclaveOptions Property Map

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

hibernationOptions Property Map

The hibernation options for the instance. See Hibernation Options below for more details.

iamInstanceProfile Property Map

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

imageId String

The AMI from which to launch the instance.

instanceInitiatedShutdownBehavior String

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

instanceMarketOptions Property Map

The market (purchasing) option for the instance. See Market Options below for details.

instanceRequirements Property Map

The attribute requirements for the type of instance. If present then instance_type cannot be present.

instanceType String

The type of the instance. If present then instance_requirements cannot be present.

kernelId String

The kernel ID.

keyName String

The key name to use for the instance.

licenseSpecifications List<Property Map>

A list of license specifications to associate with. See License Specification below for more details.

maintenanceOptions Property Map

The maintenance options for the instance. See Maintenance Options below for more details.

metadataOptions Property Map

Customize the metadata options for the instance. See Metadata Options below for more details.

monitoring Property Map

The monitoring option for the instance. See Monitoring below for more details.

name String

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

namePrefix String

Creates a unique name beginning with the specified prefix. Conflicts with name.

networkInterfaces List<Property Map>

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

placement Property Map

The placement of the instance. See Placement below for more details.

privateDnsNameOptions Property Map

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

ramDiskId String

The ID of the RAM disk.

securityGroupNames List<String>

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

tagSpecifications List<Property Map>

The tags to apply to the resources during launch. See Tag Specifications below for more details.

tags Map<String>

A map of tags to assign to 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.

updateDefaultVersion Boolean

Whether to update Default Version each update. Conflicts with default_version.

userData String

The base64-encoded user data to provide when launching the instance.

vpcSecurityGroupIds List<String>

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

Outputs

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

Arn string

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

Id string

The provider-assigned unique ID for this managed resource.

LatestVersion int

The latest version of the launch template.

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 Amazon Resource Name (ARN) of the instance profile.

Id string

The provider-assigned unique ID for this managed resource.

LatestVersion int

The latest version of the launch template.

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 Amazon Resource Name (ARN) of the instance profile.

id String

The provider-assigned unique ID for this managed resource.

latestVersion Integer

The latest version of the launch template.

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 Amazon Resource Name (ARN) of the instance profile.

id string

The provider-assigned unique ID for this managed resource.

latestVersion number

The latest version of the launch template.

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 Amazon Resource Name (ARN) of the instance profile.

id str

The provider-assigned unique ID for this managed resource.

latest_version int

The latest version of the launch template.

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 Amazon Resource Name (ARN) of the instance profile.

id String

The provider-assigned unique ID for this managed resource.

latestVersion Number

The latest version of the launch template.

tagsAll Map<String>

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

Look up Existing LaunchTemplate Resource

Get an existing LaunchTemplate 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?: LaunchTemplateState, opts?: CustomResourceOptions): LaunchTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        block_device_mappings: Optional[Sequence[LaunchTemplateBlockDeviceMappingArgs]] = None,
        capacity_reservation_specification: Optional[LaunchTemplateCapacityReservationSpecificationArgs] = None,
        cpu_options: Optional[LaunchTemplateCpuOptionsArgs] = None,
        credit_specification: Optional[LaunchTemplateCreditSpecificationArgs] = None,
        default_version: Optional[int] = None,
        description: Optional[str] = None,
        disable_api_stop: Optional[bool] = None,
        disable_api_termination: Optional[bool] = None,
        ebs_optimized: Optional[str] = None,
        elastic_gpu_specifications: Optional[Sequence[LaunchTemplateElasticGpuSpecificationArgs]] = None,
        elastic_inference_accelerator: Optional[LaunchTemplateElasticInferenceAcceleratorArgs] = None,
        enclave_options: Optional[LaunchTemplateEnclaveOptionsArgs] = None,
        hibernation_options: Optional[LaunchTemplateHibernationOptionsArgs] = None,
        iam_instance_profile: Optional[LaunchTemplateIamInstanceProfileArgs] = None,
        image_id: Optional[str] = None,
        instance_initiated_shutdown_behavior: Optional[str] = None,
        instance_market_options: Optional[LaunchTemplateInstanceMarketOptionsArgs] = None,
        instance_requirements: Optional[LaunchTemplateInstanceRequirementsArgs] = None,
        instance_type: Optional[str] = None,
        kernel_id: Optional[str] = None,
        key_name: Optional[str] = None,
        latest_version: Optional[int] = None,
        license_specifications: Optional[Sequence[LaunchTemplateLicenseSpecificationArgs]] = None,
        maintenance_options: Optional[LaunchTemplateMaintenanceOptionsArgs] = None,
        metadata_options: Optional[LaunchTemplateMetadataOptionsArgs] = None,
        monitoring: Optional[LaunchTemplateMonitoringArgs] = None,
        name: Optional[str] = None,
        name_prefix: Optional[str] = None,
        network_interfaces: Optional[Sequence[LaunchTemplateNetworkInterfaceArgs]] = None,
        placement: Optional[LaunchTemplatePlacementArgs] = None,
        private_dns_name_options: Optional[LaunchTemplatePrivateDnsNameOptionsArgs] = None,
        ram_disk_id: Optional[str] = None,
        security_group_names: Optional[Sequence[str]] = None,
        tag_specifications: Optional[Sequence[LaunchTemplateTagSpecificationArgs]] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        update_default_version: Optional[bool] = None,
        user_data: Optional[str] = None,
        vpc_security_group_ids: Optional[Sequence[str]] = None) -> LaunchTemplate
func GetLaunchTemplate(ctx *Context, name string, id IDInput, state *LaunchTemplateState, opts ...ResourceOption) (*LaunchTemplate, error)
public static LaunchTemplate Get(string name, Input<string> id, LaunchTemplateState? state, CustomResourceOptions? opts = null)
public static LaunchTemplate get(String name, Output<String> id, LaunchTemplateState 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 Amazon Resource Name (ARN) of the instance profile.

BlockDeviceMappings List<Pulumi.Aws.Ec2.Inputs.LaunchTemplateBlockDeviceMappingArgs>

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

CapacityReservationSpecification Pulumi.Aws.Ec2.Inputs.LaunchTemplateCapacityReservationSpecificationArgs

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

CpuOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateCpuOptionsArgs

The CPU options for the instance. See CPU Options below for more details.

CreditSpecification Pulumi.Aws.Ec2.Inputs.LaunchTemplateCreditSpecificationArgs

Customize the credit specification of the instance. See Credit Specification below for more details.

DefaultVersion int

Default Version of the launch template.

Description string

Description of the launch template.

DisableApiStop bool

If true, enables EC2 Instance Stop Protection.

DisableApiTermination bool

If true, enables EC2 Instance Termination Protection

EbsOptimized string

If true, the launched EC2 instance will be EBS-optimized.

ElasticGpuSpecifications List<Pulumi.Aws.Ec2.Inputs.LaunchTemplateElasticGpuSpecificationArgs>

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

ElasticInferenceAccelerator Pulumi.Aws.Ec2.Inputs.LaunchTemplateElasticInferenceAcceleratorArgs

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

EnclaveOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateEnclaveOptionsArgs

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

HibernationOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateHibernationOptionsArgs

The hibernation options for the instance. See Hibernation Options below for more details.

IamInstanceProfile Pulumi.Aws.Ec2.Inputs.LaunchTemplateIamInstanceProfileArgs

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

ImageId string

The AMI from which to launch the instance.

InstanceInitiatedShutdownBehavior string

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

InstanceMarketOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateInstanceMarketOptionsArgs

The market (purchasing) option for the instance. See Market Options below for details.

InstanceRequirements Pulumi.Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsArgs

The attribute requirements for the type of instance. If present then instance_type cannot be present.

InstanceType string

The type of the instance. If present then instance_requirements cannot be present.

KernelId string

The kernel ID.

KeyName string

The key name to use for the instance.

LatestVersion int

The latest version of the launch template.

LicenseSpecifications List<Pulumi.Aws.Ec2.Inputs.LaunchTemplateLicenseSpecificationArgs>

A list of license specifications to associate with. See License Specification below for more details.

MaintenanceOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateMaintenanceOptionsArgs

The maintenance options for the instance. See Maintenance Options below for more details.

MetadataOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplateMetadataOptionsArgs

Customize the metadata options for the instance. See Metadata Options below for more details.

Monitoring Pulumi.Aws.Ec2.Inputs.LaunchTemplateMonitoringArgs

The monitoring option for the instance. See Monitoring below for more details.

Name string

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

NamePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

NetworkInterfaces List<Pulumi.Aws.Ec2.Inputs.LaunchTemplateNetworkInterfaceArgs>

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

Placement Pulumi.Aws.Ec2.Inputs.LaunchTemplatePlacementArgs

The placement of the instance. See Placement below for more details.

PrivateDnsNameOptions Pulumi.Aws.Ec2.Inputs.LaunchTemplatePrivateDnsNameOptionsArgs

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

RamDiskId string

The ID of the RAM disk.

SecurityGroupNames List<string>

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

TagSpecifications List<Pulumi.Aws.Ec2.Inputs.LaunchTemplateTagSpecificationArgs>

The tags to apply to the resources during launch. See Tag Specifications below for more details.

Tags Dictionary<string, string>

A map of tags to assign to 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.

UpdateDefaultVersion bool

Whether to update Default Version each update. Conflicts with default_version.

UserData string

The base64-encoded user data to provide when launching the instance.

VpcSecurityGroupIds List<string>

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

Arn string

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

BlockDeviceMappings []LaunchTemplateBlockDeviceMappingArgs

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

CapacityReservationSpecification LaunchTemplateCapacityReservationSpecificationArgs

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

CpuOptions LaunchTemplateCpuOptionsArgs

The CPU options for the instance. See CPU Options below for more details.

CreditSpecification LaunchTemplateCreditSpecificationArgs

Customize the credit specification of the instance. See Credit Specification below for more details.

DefaultVersion int

Default Version of the launch template.

Description string

Description of the launch template.

DisableApiStop bool

If true, enables EC2 Instance Stop Protection.

DisableApiTermination bool

If true, enables EC2 Instance Termination Protection

EbsOptimized string

If true, the launched EC2 instance will be EBS-optimized.

ElasticGpuSpecifications []LaunchTemplateElasticGpuSpecificationArgs

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

ElasticInferenceAccelerator LaunchTemplateElasticInferenceAcceleratorArgs

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

EnclaveOptions LaunchTemplateEnclaveOptionsArgs

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

HibernationOptions LaunchTemplateHibernationOptionsArgs

The hibernation options for the instance. See Hibernation Options below for more details.

IamInstanceProfile LaunchTemplateIamInstanceProfileArgs

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

ImageId string

The AMI from which to launch the instance.

InstanceInitiatedShutdownBehavior string

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

InstanceMarketOptions LaunchTemplateInstanceMarketOptionsArgs

The market (purchasing) option for the instance. See Market Options below for details.

InstanceRequirements LaunchTemplateInstanceRequirementsArgs

The attribute requirements for the type of instance. If present then instance_type cannot be present.

InstanceType string

The type of the instance. If present then instance_requirements cannot be present.

KernelId string

The kernel ID.

KeyName string

The key name to use for the instance.

LatestVersion int

The latest version of the launch template.

LicenseSpecifications []LaunchTemplateLicenseSpecificationArgs

A list of license specifications to associate with. See License Specification below for more details.

MaintenanceOptions LaunchTemplateMaintenanceOptionsArgs

The maintenance options for the instance. See Maintenance Options below for more details.

MetadataOptions LaunchTemplateMetadataOptionsArgs

Customize the metadata options for the instance. See Metadata Options below for more details.

Monitoring LaunchTemplateMonitoringArgs

The monitoring option for the instance. See Monitoring below for more details.

Name string

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

NamePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

NetworkInterfaces []LaunchTemplateNetworkInterfaceArgs

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

Placement LaunchTemplatePlacementArgs

The placement of the instance. See Placement below for more details.

PrivateDnsNameOptions LaunchTemplatePrivateDnsNameOptionsArgs

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

RamDiskId string

The ID of the RAM disk.

SecurityGroupNames []string

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

TagSpecifications []LaunchTemplateTagSpecificationArgs

The tags to apply to the resources during launch. See Tag Specifications below for more details.

Tags map[string]string

A map of tags to assign to 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.

UpdateDefaultVersion bool

Whether to update Default Version each update. Conflicts with default_version.

UserData string

The base64-encoded user data to provide when launching the instance.

VpcSecurityGroupIds []string

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

arn String

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

blockDeviceMappings List<LaunchTemplateBlockDeviceMappingArgs>

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

capacityReservationSpecification LaunchTemplateCapacityReservationSpecificationArgs

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

cpuOptions LaunchTemplateCpuOptionsArgs

The CPU options for the instance. See CPU Options below for more details.

creditSpecification LaunchTemplateCreditSpecificationArgs

Customize the credit specification of the instance. See Credit Specification below for more details.

defaultVersion Integer

Default Version of the launch template.

description String

Description of the launch template.

disableApiStop Boolean

If true, enables EC2 Instance Stop Protection.

disableApiTermination Boolean

If true, enables EC2 Instance Termination Protection

ebsOptimized String

If true, the launched EC2 instance will be EBS-optimized.

elasticGpuSpecifications List<LaunchTemplateElasticGpuSpecificationArgs>

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

elasticInferenceAccelerator LaunchTemplateElasticInferenceAcceleratorArgs

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

enclaveOptions LaunchTemplateEnclaveOptionsArgs

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

hibernationOptions LaunchTemplateHibernationOptionsArgs

The hibernation options for the instance. See Hibernation Options below for more details.

iamInstanceProfile LaunchTemplateIamInstanceProfileArgs

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

imageId String

The AMI from which to launch the instance.

instanceInitiatedShutdownBehavior String

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

instanceMarketOptions LaunchTemplateInstanceMarketOptionsArgs

The market (purchasing) option for the instance. See Market Options below for details.

instanceRequirements LaunchTemplateInstanceRequirementsArgs

The attribute requirements for the type of instance. If present then instance_type cannot be present.

instanceType String

The type of the instance. If present then instance_requirements cannot be present.

kernelId String

The kernel ID.

keyName String

The key name to use for the instance.

latestVersion Integer

The latest version of the launch template.

licenseSpecifications List<LaunchTemplateLicenseSpecificationArgs>

A list of license specifications to associate with. See License Specification below for more details.

maintenanceOptions LaunchTemplateMaintenanceOptionsArgs

The maintenance options for the instance. See Maintenance Options below for more details.

metadataOptions LaunchTemplateMetadataOptionsArgs

Customize the metadata options for the instance. See Metadata Options below for more details.

monitoring LaunchTemplateMonitoringArgs

The monitoring option for the instance. See Monitoring below for more details.

name String

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

namePrefix String

Creates a unique name beginning with the specified prefix. Conflicts with name.

networkInterfaces List<LaunchTemplateNetworkInterfaceArgs>

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

placement LaunchTemplatePlacementArgs

The placement of the instance. See Placement below for more details.

privateDnsNameOptions LaunchTemplatePrivateDnsNameOptionsArgs

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

ramDiskId String

The ID of the RAM disk.

securityGroupNames List<String>

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

tagSpecifications List<LaunchTemplateTagSpecificationArgs>

The tags to apply to the resources during launch. See Tag Specifications below for more details.

tags Map<String,String>

A map of tags to assign to 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.

updateDefaultVersion Boolean

Whether to update Default Version each update. Conflicts with default_version.

userData String

The base64-encoded user data to provide when launching the instance.

vpcSecurityGroupIds List<String>

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

arn string

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

blockDeviceMappings LaunchTemplateBlockDeviceMappingArgs[]

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

capacityReservationSpecification LaunchTemplateCapacityReservationSpecificationArgs

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

cpuOptions LaunchTemplateCpuOptionsArgs

The CPU options for the instance. See CPU Options below for more details.

creditSpecification LaunchTemplateCreditSpecificationArgs

Customize the credit specification of the instance. See Credit Specification below for more details.

defaultVersion number

Default Version of the launch template.

description string

Description of the launch template.

disableApiStop boolean

If true, enables EC2 Instance Stop Protection.

disableApiTermination boolean

If true, enables EC2 Instance Termination Protection

ebsOptimized string

If true, the launched EC2 instance will be EBS-optimized.

elasticGpuSpecifications LaunchTemplateElasticGpuSpecificationArgs[]

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

elasticInferenceAccelerator LaunchTemplateElasticInferenceAcceleratorArgs

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

enclaveOptions LaunchTemplateEnclaveOptionsArgs

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

hibernationOptions LaunchTemplateHibernationOptionsArgs

The hibernation options for the instance. See Hibernation Options below for more details.

iamInstanceProfile LaunchTemplateIamInstanceProfileArgs

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

imageId string

The AMI from which to launch the instance.

instanceInitiatedShutdownBehavior string

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

instanceMarketOptions LaunchTemplateInstanceMarketOptionsArgs

The market (purchasing) option for the instance. See Market Options below for details.

instanceRequirements LaunchTemplateInstanceRequirementsArgs

The attribute requirements for the type of instance. If present then instance_type cannot be present.

instanceType string

The type of the instance. If present then instance_requirements cannot be present.

kernelId string

The kernel ID.

keyName string

The key name to use for the instance.

latestVersion number

The latest version of the launch template.

licenseSpecifications LaunchTemplateLicenseSpecificationArgs[]

A list of license specifications to associate with. See License Specification below for more details.

maintenanceOptions LaunchTemplateMaintenanceOptionsArgs

The maintenance options for the instance. See Maintenance Options below for more details.

metadataOptions LaunchTemplateMetadataOptionsArgs

Customize the metadata options for the instance. See Metadata Options below for more details.

monitoring LaunchTemplateMonitoringArgs

The monitoring option for the instance. See Monitoring below for more details.

name string

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

namePrefix string

Creates a unique name beginning with the specified prefix. Conflicts with name.

networkInterfaces LaunchTemplateNetworkInterfaceArgs[]

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

placement LaunchTemplatePlacementArgs

The placement of the instance. See Placement below for more details.

privateDnsNameOptions LaunchTemplatePrivateDnsNameOptionsArgs

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

ramDiskId string

The ID of the RAM disk.

securityGroupNames string[]

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

tagSpecifications LaunchTemplateTagSpecificationArgs[]

The tags to apply to the resources during launch. See Tag Specifications below for more details.

tags {[key: string]: string}

A map of tags to assign to 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.

updateDefaultVersion boolean

Whether to update Default Version each update. Conflicts with default_version.

userData string

The base64-encoded user data to provide when launching the instance.

vpcSecurityGroupIds string[]

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

arn str

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

block_device_mappings Sequence[LaunchTemplateBlockDeviceMappingArgs]

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

capacity_reservation_specification LaunchTemplateCapacityReservationSpecificationArgs

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

cpu_options LaunchTemplateCpuOptionsArgs

The CPU options for the instance. See CPU Options below for more details.

credit_specification LaunchTemplateCreditSpecificationArgs

Customize the credit specification of the instance. See Credit Specification below for more details.

default_version int

Default Version of the launch template.

description str

Description of the launch template.

disable_api_stop bool

If true, enables EC2 Instance Stop Protection.

disable_api_termination bool

If true, enables EC2 Instance Termination Protection

ebs_optimized str

If true, the launched EC2 instance will be EBS-optimized.

elastic_gpu_specifications Sequence[LaunchTemplateElasticGpuSpecificationArgs]

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

elastic_inference_accelerator LaunchTemplateElasticInferenceAcceleratorArgs

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

enclave_options LaunchTemplateEnclaveOptionsArgs

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

hibernation_options LaunchTemplateHibernationOptionsArgs

The hibernation options for the instance. See Hibernation Options below for more details.

iam_instance_profile LaunchTemplateIamInstanceProfileArgs

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

image_id str

The AMI from which to launch the instance.

instance_initiated_shutdown_behavior str

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

instance_market_options LaunchTemplateInstanceMarketOptionsArgs

The market (purchasing) option for the instance. See Market Options below for details.

instance_requirements LaunchTemplateInstanceRequirementsArgs

The attribute requirements for the type of instance. If present then instance_type cannot be present.

instance_type str

The type of the instance. If present then instance_requirements cannot be present.

kernel_id str

The kernel ID.

key_name str

The key name to use for the instance.

latest_version int

The latest version of the launch template.

license_specifications Sequence[LaunchTemplateLicenseSpecificationArgs]

A list of license specifications to associate with. See License Specification below for more details.

maintenance_options LaunchTemplateMaintenanceOptionsArgs

The maintenance options for the instance. See Maintenance Options below for more details.

metadata_options LaunchTemplateMetadataOptionsArgs

Customize the metadata options for the instance. See Metadata Options below for more details.

monitoring LaunchTemplateMonitoringArgs

The monitoring option for the instance. See Monitoring below for more details.

name str

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

name_prefix str

Creates a unique name beginning with the specified prefix. Conflicts with name.

network_interfaces Sequence[LaunchTemplateNetworkInterfaceArgs]

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

placement LaunchTemplatePlacementArgs

The placement of the instance. See Placement below for more details.

private_dns_name_options LaunchTemplatePrivateDnsNameOptionsArgs

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

ram_disk_id str

The ID of the RAM disk.

security_group_names Sequence[str]

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

tag_specifications Sequence[LaunchTemplateTagSpecificationArgs]

The tags to apply to the resources during launch. See Tag Specifications below for more details.

tags Mapping[str, str]

A map of tags to assign to 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.

update_default_version bool

Whether to update Default Version each update. Conflicts with default_version.

user_data str

The base64-encoded user data to provide when launching the instance.

vpc_security_group_ids Sequence[str]

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

arn String

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

blockDeviceMappings List<Property Map>

Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.

capacityReservationSpecification Property Map

Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.

cpuOptions Property Map

The CPU options for the instance. See CPU Options below for more details.

creditSpecification Property Map

Customize the credit specification of the instance. See Credit Specification below for more details.

defaultVersion Number

Default Version of the launch template.

description String

Description of the launch template.

disableApiStop Boolean

If true, enables EC2 Instance Stop Protection.

disableApiTermination Boolean

If true, enables EC2 Instance Termination Protection

ebsOptimized String

If true, the launched EC2 instance will be EBS-optimized.

elasticGpuSpecifications List<Property Map>

The elastic GPU to attach to the instance. See Elastic GPU below for more details.

elasticInferenceAccelerator Property Map

Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.

enclaveOptions Property Map

Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.

hibernationOptions Property Map

The hibernation options for the instance. See Hibernation Options below for more details.

iamInstanceProfile Property Map

The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.

imageId String

The AMI from which to launch the instance.

instanceInitiatedShutdownBehavior String

Shutdown behavior for the instance. Can be stop or terminate. (Default: stop).

instanceMarketOptions Property Map

The market (purchasing) option for the instance. See Market Options below for details.

instanceRequirements Property Map

The attribute requirements for the type of instance. If present then instance_type cannot be present.

instanceType String

The type of the instance. If present then instance_requirements cannot be present.

kernelId String

The kernel ID.

keyName String

The key name to use for the instance.

latestVersion Number

The latest version of the launch template.

licenseSpecifications List<Property Map>

A list of license specifications to associate with. See License Specification below for more details.

maintenanceOptions Property Map

The maintenance options for the instance. See Maintenance Options below for more details.

metadataOptions Property Map

Customize the metadata options for the instance. See Metadata Options below for more details.

monitoring Property Map

The monitoring option for the instance. See Monitoring below for more details.

name String

The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.

namePrefix String

Creates a unique name beginning with the specified prefix. Conflicts with name.

networkInterfaces List<Property Map>

Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.

placement Property Map

The placement of the instance. See Placement below for more details.

privateDnsNameOptions Property Map

The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.

ramDiskId String

The ID of the RAM disk.

securityGroupNames List<String>

A list of security group names to associate with. If you are creating Instances in a VPC, use vpc_security_group_ids instead.

tagSpecifications List<Property Map>

The tags to apply to the resources during launch. See Tag Specifications below for more details.

tags Map<String>

A map of tags to assign to 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.

updateDefaultVersion Boolean

Whether to update Default Version each update. Conflicts with default_version.

userData String

The base64-encoded user data to provide when launching the instance.

vpcSecurityGroupIds List<String>

A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups

Supporting Types

LaunchTemplateBlockDeviceMapping

DeviceName string

The name of the device to mount.

Ebs Pulumi.Aws.Ec2.Inputs.LaunchTemplateBlockDeviceMappingEbs

Configure EBS volume properties.

NoDevice string

Suppresses the specified device included in the AMI's block device mapping.

VirtualName string

The Instance Store Device Name (e.g., "ephemeral0").

DeviceName string

The name of the device to mount.

Ebs LaunchTemplateBlockDeviceMappingEbs

Configure EBS volume properties.

NoDevice string

Suppresses the specified device included in the AMI's block device mapping.

VirtualName string

The Instance Store Device Name (e.g., "ephemeral0").

deviceName String

The name of the device to mount.

ebs LaunchTemplateBlockDeviceMappingEbs

Configure EBS volume properties.

noDevice String

Suppresses the specified device included in the AMI's block device mapping.

virtualName String

The Instance Store Device Name (e.g., "ephemeral0").

deviceName string

The name of the device to mount.

ebs LaunchTemplateBlockDeviceMappingEbs

Configure EBS volume properties.

noDevice string

Suppresses the specified device included in the AMI's block device mapping.

virtualName string

The Instance Store Device Name (e.g., "ephemeral0").

device_name str

The name of the device to mount.

ebs LaunchTemplateBlockDeviceMappingEbs

Configure EBS volume properties.

no_device str

Suppresses the specified device included in the AMI's block device mapping.

virtual_name str

The Instance Store Device Name (e.g., "ephemeral0").

deviceName String

The name of the device to mount.

ebs Property Map

Configure EBS volume properties.

noDevice String

Suppresses the specified device included in the AMI's block device mapping.

virtualName String

The Instance Store Device Name (e.g., "ephemeral0").

LaunchTemplateBlockDeviceMappingEbs

DeleteOnTermination string

Whether the volume should be destroyed on instance termination. Defaults to false if not set. See Preserving Amazon EBS Volumes on Instance Termination for more information.

Encrypted string

Enables EBS encryption on the volume (Default: false). Cannot be used with snapshot_id.

Iops int

The amount of provisioned IOPS. This must be set with a volume_type of "io1/io2".

KmsKeyId string

The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. encrypted must be set to true when this is set.

SnapshotId string

The Snapshot ID to mount.

Throughput int

The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s.

VolumeSize int

The size of the volume in gigabytes.

VolumeType string

The volume type. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: gp2).

DeleteOnTermination string

Whether the volume should be destroyed on instance termination. Defaults to false if not set. See Preserving Amazon EBS Volumes on Instance Termination for more information.

Encrypted string

Enables EBS encryption on the volume (Default: false). Cannot be used with snapshot_id.

Iops int

The amount of provisioned IOPS. This must be set with a volume_type of "io1/io2".

KmsKeyId string

The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. encrypted must be set to true when this is set.

SnapshotId string

The Snapshot ID to mount.

Throughput int

The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s.

VolumeSize int

The size of the volume in gigabytes.

VolumeType string

The volume type. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: gp2).

deleteOnTermination String

Whether the volume should be destroyed on instance termination. Defaults to false if not set. See Preserving Amazon EBS Volumes on Instance Termination for more information.

encrypted String

Enables EBS encryption on the volume (Default: false). Cannot be used with snapshot_id.

iops Integer

The amount of provisioned IOPS. This must be set with a volume_type of "io1/io2".

kmsKeyId String

The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. encrypted must be set to true when this is set.

snapshotId String

The Snapshot ID to mount.

throughput Integer

The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s.

volumeSize Integer

The size of the volume in gigabytes.

volumeType String

The volume type. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: gp2).

deleteOnTermination string

Whether the volume should be destroyed on instance termination. Defaults to false if not set. See Preserving Amazon EBS Volumes on Instance Termination for more information.

encrypted string

Enables EBS encryption on the volume (Default: false). Cannot be used with snapshot_id.

iops number

The amount of provisioned IOPS. This must be set with a volume_type of "io1/io2".

kmsKeyId string

The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. encrypted must be set to true when this is set.

snapshotId string

The Snapshot ID to mount.

throughput number

The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s.

volumeSize number

The size of the volume in gigabytes.

volumeType string

The volume type. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: gp2).

delete_on_termination str

Whether the volume should be destroyed on instance termination. Defaults to false if not set. See Preserving Amazon EBS Volumes on Instance Termination for more information.

encrypted str

Enables EBS encryption on the volume (Default: false). Cannot be used with snapshot_id.

iops int

The amount of provisioned IOPS. This must be set with a volume_type of "io1/io2".

kms_key_id str

The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. encrypted must be set to true when this is set.

snapshot_id str

The Snapshot ID to mount.

throughput int

The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s.

volume_size int

The size of the volume in gigabytes.

volume_type str

The volume type. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: gp2).

deleteOnTermination String

Whether the volume should be destroyed on instance termination. Defaults to false if not set. See Preserving Amazon EBS Volumes on Instance Termination for more information.

encrypted String

Enables EBS encryption on the volume (Default: false). Cannot be used with snapshot_id.

iops Number

The amount of provisioned IOPS. This must be set with a volume_type of "io1/io2".

kmsKeyId String

The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. encrypted must be set to true when this is set.

snapshotId String

The Snapshot ID to mount.

throughput Number

The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s.

volumeSize Number

The size of the volume in gigabytes.

volumeType String

The volume type. Can be standard, gp2, gp3, io1, io2, sc1 or st1 (Default: gp2).

LaunchTemplateCapacityReservationSpecification

CapacityReservationPreference string

Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none).

CapacityReservationTarget Pulumi.Aws.Ec2.Inputs.LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget

Used to target a specific Capacity Reservation:

CapacityReservationPreference string

Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none).

CapacityReservationTarget LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget

Used to target a specific Capacity Reservation:

capacityReservationPreference String

Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none).

capacityReservationTarget LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget

Used to target a specific Capacity Reservation:

capacityReservationPreference string

Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none).

capacityReservationTarget LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget

Used to target a specific Capacity Reservation:

capacity_reservation_preference str

Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none).

capacity_reservation_target LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget

Used to target a specific Capacity Reservation:

capacityReservationPreference String

Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none).

capacityReservationTarget Property Map

Used to target a specific Capacity Reservation:

LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget

CapacityReservationId string

The ID of the Capacity Reservation in which to run the instance.

CapacityReservationResourceGroupArn string

The ARN of the Capacity Reservation resource group in which to run the instance.

CapacityReservationId string

The ID of the Capacity Reservation in which to run the instance.

CapacityReservationResourceGroupArn string

The ARN of the Capacity Reservation resource group in which to run the instance.

capacityReservationId String

The ID of the Capacity Reservation in which to run the instance.

capacityReservationResourceGroupArn String

The ARN of the Capacity Reservation resource group in which to run the instance.

capacityReservationId string

The ID of the Capacity Reservation in which to run the instance.

capacityReservationResourceGroupArn string

The ARN of the Capacity Reservation resource group in which to run the instance.

capacity_reservation_id str

The ID of the Capacity Reservation in which to run the instance.

capacity_reservation_resource_group_arn str

The ARN of the Capacity Reservation resource group in which to run the instance.

capacityReservationId String

The ID of the Capacity Reservation in which to run the instance.

capacityReservationResourceGroupArn String

The ARN of the Capacity Reservation resource group in which to run the instance.

LaunchTemplateCpuOptions

CoreCount int

The number of CPU cores for the instance.

ThreadsPerCore int

The number of threads per CPU core. To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. Otherwise, specify the default value of 2.

CoreCount int

The number of CPU cores for the instance.

ThreadsPerCore int

The number of threads per CPU core. To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. Otherwise, specify the default value of 2.

coreCount Integer

The number of CPU cores for the instance.

threadsPerCore Integer

The number of threads per CPU core. To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. Otherwise, specify the default value of 2.

coreCount number

The number of CPU cores for the instance.

threadsPerCore number

The number of threads per CPU core. To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. Otherwise, specify the default value of 2.

core_count int

The number of CPU cores for the instance.

threads_per_core int

The number of threads per CPU core. To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. Otherwise, specify the default value of 2.

coreCount Number

The number of CPU cores for the instance.

threadsPerCore Number

The number of threads per CPU core. To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. Otherwise, specify the default value of 2.

LaunchTemplateCreditSpecification

CpuCredits string

The credit option for CPU usage. Can be "standard" or "unlimited". T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.

CpuCredits string

The credit option for CPU usage. Can be "standard" or "unlimited". T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.

cpuCredits String

The credit option for CPU usage. Can be "standard" or "unlimited". T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.

cpuCredits string

The credit option for CPU usage. Can be "standard" or "unlimited". T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.

cpu_credits str

The credit option for CPU usage. Can be "standard" or "unlimited". T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.

cpuCredits String

The credit option for CPU usage. Can be "standard" or "unlimited". T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.

LaunchTemplateElasticGpuSpecification

LaunchTemplateElasticInferenceAccelerator

Type string

Accelerator type.

Type string

Accelerator type.

type String

Accelerator type.

type string

Accelerator type.

type str

Accelerator type.

type String

Accelerator type.

LaunchTemplateEnclaveOptions

Enabled bool

If set to true, Nitro Enclaves will be enabled on the instance.

Enabled bool

If set to true, Nitro Enclaves will be enabled on the instance.

enabled Boolean

If set to true, Nitro Enclaves will be enabled on the instance.

enabled boolean

If set to true, Nitro Enclaves will be enabled on the instance.

enabled bool

If set to true, Nitro Enclaves will be enabled on the instance.

enabled Boolean

If set to true, Nitro Enclaves will be enabled on the instance.

LaunchTemplateHibernationOptions

Configured bool

If set to true, the launched EC2 instance will hibernation enabled.

Configured bool

If set to true, the launched EC2 instance will hibernation enabled.

configured Boolean

If set to true, the launched EC2 instance will hibernation enabled.

configured boolean

If set to true, the launched EC2 instance will hibernation enabled.

configured bool

If set to true, the launched EC2 instance will hibernation enabled.

configured Boolean

If set to true, the launched EC2 instance will hibernation enabled.

LaunchTemplateIamInstanceProfile

Arn string

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

Name string

The name of the instance profile.

Arn string

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

Name string

The name of the instance profile.

arn String

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

name String

The name of the instance profile.

arn string

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

name string

The name of the instance profile.

arn str

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

name str

The name of the instance profile.

arn String

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

name String

The name of the instance profile.

LaunchTemplateInstanceMarketOptions

marketType String

The market type. Can be spot.

spotOptions Property Map

The options for Spot Instance

LaunchTemplateInstanceMarketOptionsSpotOptions

BlockDurationMinutes int

The required duration in minutes. This value must be a multiple of 60.

InstanceInterruptionBehavior string

The behavior when a Spot Instance is interrupted. Can be hibernate, stop, or terminate. (Default: terminate).

MaxPrice string

The maximum hourly price you're willing to pay for the Spot Instances.

SpotInstanceType string

The Spot Instance request type. Can be one-time, or persistent.

ValidUntil string

The end date of the request.

BlockDurationMinutes int

The required duration in minutes. This value must be a multiple of 60.

InstanceInterruptionBehavior string

The behavior when a Spot Instance is interrupted. Can be hibernate, stop, or terminate. (Default: terminate).

MaxPrice string

The maximum hourly price you're willing to pay for the Spot Instances.

SpotInstanceType string

The Spot Instance request type. Can be one-time, or persistent.

ValidUntil string

The end date of the request.

blockDurationMinutes Integer

The required duration in minutes. This value must be a multiple of 60.

instanceInterruptionBehavior String

The behavior when a Spot Instance is interrupted. Can be hibernate, stop, or terminate. (Default: terminate).

maxPrice String

The maximum hourly price you're willing to pay for the Spot Instances.

spotInstanceType String

The Spot Instance request type. Can be one-time, or persistent.

validUntil String

The end date of the request.

blockDurationMinutes number

The required duration in minutes. This value must be a multiple of 60.

instanceInterruptionBehavior string

The behavior when a Spot Instance is interrupted. Can be hibernate, stop, or terminate. (Default: terminate).

maxPrice string

The maximum hourly price you're willing to pay for the Spot Instances.

spotInstanceType string

The Spot Instance request type. Can be one-time, or persistent.

validUntil string

The end date of the request.

block_duration_minutes int

The required duration in minutes. This value must be a multiple of 60.

instance_interruption_behavior str

The behavior when a Spot Instance is interrupted. Can be hibernate, stop, or terminate. (Default: terminate).

max_price str

The maximum hourly price you're willing to pay for the Spot Instances.

spot_instance_type str

The Spot Instance request type. Can be one-time, or persistent.

valid_until str

The end date of the request.

blockDurationMinutes Number

The required duration in minutes. This value must be a multiple of 60.

instanceInterruptionBehavior String

The behavior when a Spot Instance is interrupted. Can be hibernate, stop, or terminate. (Default: terminate).

maxPrice String

The maximum hourly price you're willing to pay for the Spot Instances.

spotInstanceType String

The Spot Instance request type. Can be one-time, or persistent.

validUntil String

The end date of the request.

LaunchTemplateInstanceRequirements

MemoryMib Pulumi.Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsMemoryMib

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

VcpuCount Pulumi.Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsVcpuCount

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

AcceleratorCount Pulumi.Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsAcceleratorCount

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

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

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

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

NetworkInterfaceCount Pulumi.Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsNetworkInterfaceCount

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

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

MemoryMib LaunchTemplateInstanceRequirementsMemoryMib

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

VcpuCount LaunchTemplateInstanceRequirementsVcpuCount

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

AcceleratorCount LaunchTemplateInstanceRequirementsAcceleratorCount

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 LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib

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 LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps

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 LaunchTemplateInstanceRequirementsMemoryGibPerVcpu

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

NetworkInterfaceCount LaunchTemplateInstanceRequirementsNetworkInterfaceCount

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 LaunchTemplateInstanceRequirementsTotalLocalStorageGb

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

memoryMib LaunchTemplateInstanceRequirementsMemoryMib

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

vcpuCount LaunchTemplateInstanceRequirementsVcpuCount

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

acceleratorCount LaunchTemplateInstanceRequirementsAcceleratorCount

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 LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib

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 LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps

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 LaunchTemplateInstanceRequirementsMemoryGibPerVcpu

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

networkInterfaceCount LaunchTemplateInstanceRequirementsNetworkInterfaceCount

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 LaunchTemplateInstanceRequirementsTotalLocalStorageGb

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

memoryMib LaunchTemplateInstanceRequirementsMemoryMib

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

vcpuCount LaunchTemplateInstanceRequirementsVcpuCount

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

acceleratorCount LaunchTemplateInstanceRequirementsAcceleratorCount

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 LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib

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 LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps

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 LaunchTemplateInstanceRequirementsMemoryGibPerVcpu

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

networkInterfaceCount LaunchTemplateInstanceRequirementsNetworkInterfaceCount

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 LaunchTemplateInstanceRequirementsTotalLocalStorageGb

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

memory_mib LaunchTemplateInstanceRequirementsMemoryMib

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

vcpu_count LaunchTemplateInstanceRequirementsVcpuCount

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

accelerator_count LaunchTemplateInstanceRequirementsAcceleratorCount

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 LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib

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 LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps

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 LaunchTemplateInstanceRequirementsMemoryGibPerVcpu

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

network_interface_count LaunchTemplateInstanceRequirementsNetworkInterfaceCount

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 LaunchTemplateInstanceRequirementsTotalLocalStorageGb

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.

LaunchTemplateInstanceRequirementsAcceleratorCount

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.

LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib

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.

LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps

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.

LaunchTemplateInstanceRequirementsMemoryGibPerVcpu

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.

LaunchTemplateInstanceRequirementsMemoryMib

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.

LaunchTemplateInstanceRequirementsNetworkInterfaceCount

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.

LaunchTemplateInstanceRequirementsTotalLocalStorageGb

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.

LaunchTemplateInstanceRequirementsVcpuCount

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.

LaunchTemplateLicenseSpecification

LicenseConfigurationArn string

ARN of the license configuration.

LicenseConfigurationArn string

ARN of the license configuration.

licenseConfigurationArn String

ARN of the license configuration.

licenseConfigurationArn string

ARN of the license configuration.

license_configuration_arn str

ARN of the license configuration.

licenseConfigurationArn String

ARN of the license configuration.

LaunchTemplateMaintenanceOptions

AutoRecovery string

Disables the automatic recovery behavior of your instance or sets it to default. Can be "default" or "disabled". See Recover your instance for more details.

AutoRecovery string

Disables the automatic recovery behavior of your instance or sets it to default. Can be "default" or "disabled". See Recover your instance for more details.

autoRecovery String

Disables the automatic recovery behavior of your instance or sets it to default. Can be "default" or "disabled". See Recover your instance for more details.

autoRecovery string

Disables the automatic recovery behavior of your instance or sets it to default. Can be "default" or "disabled". See Recover your instance for more details.

auto_recovery str

Disables the automatic recovery behavior of your instance or sets it to default. Can be "default" or "disabled". See Recover your instance for more details.

autoRecovery String

Disables the automatic recovery behavior of your instance or sets it to default. Can be "default" or "disabled". See Recover your instance for more details.

LaunchTemplateMetadataOptions

HttpEndpoint string

Whether the metadata service is available. Can be "enabled" or "disabled". (Default: "enabled").

HttpProtocolIpv6 string

Enables or disables the IPv6 endpoint for the instance metadata service. (Default: disabled).

HttpPutResponseHopLimit int

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from 1 to 64. (Default: 1).

HttpTokens string

Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Can be "optional" or "required". (Default: "optional").

InstanceMetadataTags string

Enables or disables access to instance tags from the instance metadata service. (Default: disabled).

HttpEndpoint string

Whether the metadata service is available. Can be "enabled" or "disabled". (Default: "enabled").

HttpProtocolIpv6 string

Enables or disables the IPv6 endpoint for the instance metadata service. (Default: disabled).

HttpPutResponseHopLimit int

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from 1 to 64. (Default: 1).

HttpTokens string

Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Can be "optional" or "required". (Default: "optional").

InstanceMetadataTags string

Enables or disables access to instance tags from the instance metadata service. (Default: disabled).

httpEndpoint String

Whether the metadata service is available. Can be "enabled" or "disabled". (Default: "enabled").

httpProtocolIpv6 String

Enables or disables the IPv6 endpoint for the instance metadata service. (Default: disabled).

httpPutResponseHopLimit Integer

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from 1 to 64. (Default: 1).

httpTokens String

Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Can be "optional" or "required". (Default: "optional").

instanceMetadataTags String

Enables or disables access to instance tags from the instance metadata service. (Default: disabled).

httpEndpoint string

Whether the metadata service is available. Can be "enabled" or "disabled". (Default: "enabled").

httpProtocolIpv6 string

Enables or disables the IPv6 endpoint for the instance metadata service. (Default: disabled).

httpPutResponseHopLimit number

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from 1 to 64. (Default: 1).

httpTokens string

Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Can be "optional" or "required". (Default: "optional").

instanceMetadataTags string

Enables or disables access to instance tags from the instance metadata service. (Default: disabled).

http_endpoint str

Whether the metadata service is available. Can be "enabled" or "disabled". (Default: "enabled").

http_protocol_ipv6 str

Enables or disables the IPv6 endpoint for the instance metadata service. (Default: disabled).

http_put_response_hop_limit int

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from 1 to 64. (Default: 1).

http_tokens str

Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Can be "optional" or "required". (Default: "optional").

instance_metadata_tags str

Enables or disables access to instance tags from the instance metadata service. (Default: disabled).

httpEndpoint String

Whether the metadata service is available. Can be "enabled" or "disabled". (Default: "enabled").

httpProtocolIpv6 String

Enables or disables the IPv6 endpoint for the instance metadata service. (Default: disabled).

httpPutResponseHopLimit Number

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from 1 to 64. (Default: 1).

httpTokens String

Whether or not the metadata service requires session tokens, also referred to as Instance Metadata Service Version 2 (IMDSv2). Can be "optional" or "required". (Default: "optional").

instanceMetadataTags String

Enables or disables access to instance tags from the instance metadata service. (Default: disabled).

LaunchTemplateMonitoring

Enabled bool

If true, the launched EC2 instance will have detailed monitoring enabled.

Enabled bool

If true, the launched EC2 instance will have detailed monitoring enabled.

enabled Boolean

If true, the launched EC2 instance will have detailed monitoring enabled.

enabled boolean

If true, the launched EC2 instance will have detailed monitoring enabled.

enabled bool

If true, the launched EC2 instance will have detailed monitoring enabled.

enabled Boolean

If true, the launched EC2 instance will have detailed monitoring enabled.

LaunchTemplateNetworkInterface

AssociateCarrierIpAddress string

Associate a Carrier IP address with eth0 for a new network interface. Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. Boolean value.

AssociatePublicIpAddress string

Associate a public ip address with the network interface. Boolean value.

DeleteOnTermination string

Whether the network interface should be destroyed on instance termination. Defaults to false if not set.

Description string

Description of the network interface.

DeviceIndex int

The integer index of the network interface attachment.

InterfaceType string

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa.

Ipv4AddressCount int

The number of secondary private IPv4 addresses to assign to a network interface. Conflicts with ipv4_addresses

Ipv4Addresses List<string>

One or more private IPv4 addresses to associate. Conflicts with ipv4_address_count

Ipv4PrefixCount int

The number of IPv4 prefixes to be automatically assigned to the network interface. Conflicts with ipv4_prefixes

Ipv4Prefixes List<string>

One or more IPv4 prefixes to be assigned to the network interface. Conflicts with ipv4_prefix_count

Ipv6AddressCount int

The number of IPv6 addresses to assign to a network interface. Conflicts with ipv6_addresses

Ipv6Addresses List<string>

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Conflicts with ipv6_address_count

Ipv6PrefixCount int

The number of IPv6 prefixes to be automatically assigned to the network interface. Conflicts with ipv6_prefixes

Ipv6Prefixes List<string>

One or more IPv6 prefixes to be assigned to the network interface. Conflicts with ipv6_prefix_count

NetworkCardIndex int

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

NetworkInterfaceId string

The ID of the network interface to attach.

PrivateIpAddress string

The primary private IPv4 address.

SecurityGroups List<string>

A list of security group IDs to associate.

SubnetId string

The VPC Subnet ID to associate.

AssociateCarrierIpAddress string

Associate a Carrier IP address with eth0 for a new network interface. Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. Boolean value.

AssociatePublicIpAddress string

Associate a public ip address with the network interface. Boolean value.

DeleteOnTermination string

Whether the network interface should be destroyed on instance termination. Defaults to false if not set.

Description string

Description of the network interface.

DeviceIndex int

The integer index of the network interface attachment.

InterfaceType string

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa.

Ipv4AddressCount int

The number of secondary private IPv4 addresses to assign to a network interface. Conflicts with ipv4_addresses

Ipv4Addresses []string

One or more private IPv4 addresses to associate. Conflicts with ipv4_address_count

Ipv4PrefixCount int

The number of IPv4 prefixes to be automatically assigned to the network interface. Conflicts with ipv4_prefixes

Ipv4Prefixes []string

One or more IPv4 prefixes to be assigned to the network interface. Conflicts with ipv4_prefix_count

Ipv6AddressCount int

The number of IPv6 addresses to assign to a network interface. Conflicts with ipv6_addresses

Ipv6Addresses []string

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Conflicts with ipv6_address_count

Ipv6PrefixCount int

The number of IPv6 prefixes to be automatically assigned to the network interface. Conflicts with ipv6_prefixes

Ipv6Prefixes []string

One or more IPv6 prefixes to be assigned to the network interface. Conflicts with ipv6_prefix_count

NetworkCardIndex int

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

NetworkInterfaceId string

The ID of the network interface to attach.

PrivateIpAddress string

The primary private IPv4 address.

SecurityGroups []string

A list of security group IDs to associate.

SubnetId string

The VPC Subnet ID to associate.

associateCarrierIpAddress String

Associate a Carrier IP address with eth0 for a new network interface. Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. Boolean value.

associatePublicIpAddress String

Associate a public ip address with the network interface. Boolean value.

deleteOnTermination String

Whether the network interface should be destroyed on instance termination. Defaults to false if not set.

description String

Description of the network interface.

deviceIndex Integer

The integer index of the network interface attachment.

interfaceType String

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa.

ipv4AddressCount Integer

The number of secondary private IPv4 addresses to assign to a network interface. Conflicts with ipv4_addresses

ipv4Addresses List<String>

One or more private IPv4 addresses to associate. Conflicts with ipv4_address_count

ipv4PrefixCount Integer

The number of IPv4 prefixes to be automatically assigned to the network interface. Conflicts with ipv4_prefixes

ipv4Prefixes List<String>

One or more IPv4 prefixes to be assigned to the network interface. Conflicts with ipv4_prefix_count

ipv6AddressCount Integer

The number of IPv6 addresses to assign to a network interface. Conflicts with ipv6_addresses

ipv6Addresses List<String>

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Conflicts with ipv6_address_count

ipv6PrefixCount Integer

The number of IPv6 prefixes to be automatically assigned to the network interface. Conflicts with ipv6_prefixes

ipv6Prefixes List<String>

One or more IPv6 prefixes to be assigned to the network interface. Conflicts with ipv6_prefix_count

networkCardIndex Integer

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

networkInterfaceId String

The ID of the network interface to attach.

privateIpAddress String

The primary private IPv4 address.

securityGroups List<String>

A list of security group IDs to associate.

subnetId String

The VPC Subnet ID to associate.

associateCarrierIpAddress string

Associate a Carrier IP address with eth0 for a new network interface. Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. Boolean value.

associatePublicIpAddress string

Associate a public ip address with the network interface. Boolean value.

deleteOnTermination string

Whether the network interface should be destroyed on instance termination. Defaults to false if not set.

description string

Description of the network interface.

deviceIndex number

The integer index of the network interface attachment.

interfaceType string

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa.

ipv4AddressCount number

The number of secondary private IPv4 addresses to assign to a network interface. Conflicts with ipv4_addresses

ipv4Addresses string[]

One or more private IPv4 addresses to associate. Conflicts with ipv4_address_count

ipv4PrefixCount number

The number of IPv4 prefixes to be automatically assigned to the network interface. Conflicts with ipv4_prefixes

ipv4Prefixes string[]

One or more IPv4 prefixes to be assigned to the network interface. Conflicts with ipv4_prefix_count

ipv6AddressCount number

The number of IPv6 addresses to assign to a network interface. Conflicts with ipv6_addresses

ipv6Addresses string[]

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Conflicts with ipv6_address_count

ipv6PrefixCount number

The number of IPv6 prefixes to be automatically assigned to the network interface. Conflicts with ipv6_prefixes

ipv6Prefixes string[]

One or more IPv6 prefixes to be assigned to the network interface. Conflicts with ipv6_prefix_count

networkCardIndex number

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

networkInterfaceId string

The ID of the network interface to attach.

privateIpAddress string

The primary private IPv4 address.

securityGroups string[]

A list of security group IDs to associate.

subnetId string

The VPC Subnet ID to associate.

associate_carrier_ip_address str

Associate a Carrier IP address with eth0 for a new network interface. Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. Boolean value.

associate_public_ip_address str

Associate a public ip address with the network interface. Boolean value.

delete_on_termination str

Whether the network interface should be destroyed on instance termination. Defaults to false if not set.

description str

Description of the network interface.

device_index int

The integer index of the network interface attachment.

interface_type str

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa.

ipv4_address_count int

The number of secondary private IPv4 addresses to assign to a network interface. Conflicts with ipv4_addresses

ipv4_addresses Sequence[str]

One or more private IPv4 addresses to associate. Conflicts with ipv4_address_count

ipv4_prefix_count int

The number of IPv4 prefixes to be automatically assigned to the network interface. Conflicts with ipv4_prefixes

ipv4_prefixes Sequence[str]

One or more IPv4 prefixes to be assigned to the network interface. Conflicts with ipv4_prefix_count

ipv6_address_count int

The number of IPv6 addresses to assign to a network interface. Conflicts with ipv6_addresses

ipv6_addresses Sequence[str]

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Conflicts with ipv6_address_count

ipv6_prefix_count int

The number of IPv6 prefixes to be automatically assigned to the network interface. Conflicts with ipv6_prefixes

ipv6_prefixes Sequence[str]

One or more IPv6 prefixes to be assigned to the network interface. Conflicts with ipv6_prefix_count

network_card_index int

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

network_interface_id str

The ID of the network interface to attach.

private_ip_address str

The primary private IPv4 address.

security_groups Sequence[str]

A list of security group IDs to associate.

subnet_id str

The VPC Subnet ID to associate.

associateCarrierIpAddress String

Associate a Carrier IP address with eth0 for a new network interface. Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. Boolean value.

associatePublicIpAddress String

Associate a public ip address with the network interface. Boolean value.

deleteOnTermination String

Whether the network interface should be destroyed on instance termination. Defaults to false if not set.

description String

Description of the network interface.

deviceIndex Number

The integer index of the network interface attachment.

interfaceType String

The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa.

ipv4AddressCount Number

The number of secondary private IPv4 addresses to assign to a network interface. Conflicts with ipv4_addresses

ipv4Addresses List<String>

One or more private IPv4 addresses to associate. Conflicts with ipv4_address_count

ipv4PrefixCount Number

The number of IPv4 prefixes to be automatically assigned to the network interface. Conflicts with ipv4_prefixes

ipv4Prefixes List<String>

One or more IPv4 prefixes to be assigned to the network interface. Conflicts with ipv4_prefix_count

ipv6AddressCount Number

The number of IPv6 addresses to assign to a network interface. Conflicts with ipv6_addresses

ipv6Addresses List<String>

One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. Conflicts with ipv6_address_count

ipv6PrefixCount Number

The number of IPv6 prefixes to be automatically assigned to the network interface. Conflicts with ipv6_prefixes

ipv6Prefixes List<String>

One or more IPv6 prefixes to be assigned to the network interface. Conflicts with ipv6_prefix_count

networkCardIndex Number

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

networkInterfaceId String

The ID of the network interface to attach.

privateIpAddress String

The primary private IPv4 address.

securityGroups List<String>

A list of security group IDs to associate.

subnetId String

The VPC Subnet ID to associate.

LaunchTemplatePlacement

Affinity string

The affinity setting for an instance on a Dedicated Host.

AvailabilityZone string

The Availability Zone for the instance.

GroupName string

The name of the placement group for the instance.

HostId string

The ID of the Dedicated Host for the instance.

HostResourceGroupArn string

The ARN of the Host Resource Group in which to launch instances.

PartitionNumber int

The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition.

SpreadDomain string

Reserved for future use.

Tenancy string

The tenancy of the instance (if the instance is running in a VPC). Can be default, dedicated, or host.

Affinity string

The affinity setting for an instance on a Dedicated Host.

AvailabilityZone string

The Availability Zone for the instance.

GroupName string

The name of the placement group for the instance.

HostId string

The ID of the Dedicated Host for the instance.

HostResourceGroupArn string

The ARN of the Host Resource Group in which to launch instances.

PartitionNumber int

The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition.

SpreadDomain string

Reserved for future use.

Tenancy string

The tenancy of the instance (if the instance is running in a VPC). Can be default, dedicated, or host.

affinity String

The affinity setting for an instance on a Dedicated Host.

availabilityZone String

The Availability Zone for the instance.

groupName String

The name of the placement group for the instance.

hostId String

The ID of the Dedicated Host for the instance.

hostResourceGroupArn String

The ARN of the Host Resource Group in which to launch instances.

partitionNumber Integer

The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition.

spreadDomain String

Reserved for future use.

tenancy String

The tenancy of the instance (if the instance is running in a VPC). Can be default, dedicated, or host.

affinity string

The affinity setting for an instance on a Dedicated Host.

availabilityZone string

The Availability Zone for the instance.

groupName string

The name of the placement group for the instance.

hostId string

The ID of the Dedicated Host for the instance.

hostResourceGroupArn string

The ARN of the Host Resource Group in which to launch instances.

partitionNumber number

The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition.

spreadDomain string

Reserved for future use.

tenancy string

The tenancy of the instance (if the instance is running in a VPC). Can be default, dedicated, or host.

affinity str

The affinity setting for an instance on a Dedicated Host.

availability_zone str

The Availability Zone for the instance.

group_name str

The name of the placement group for the instance.

host_id str

The ID of the Dedicated Host for the instance.

host_resource_group_arn str

The ARN of the Host Resource Group in which to launch instances.

partition_number int

The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition.

spread_domain str

Reserved for future use.

tenancy str

The tenancy of the instance (if the instance is running in a VPC). Can be default, dedicated, or host.

affinity String

The affinity setting for an instance on a Dedicated Host.

availabilityZone String

The Availability Zone for the instance.

groupName String

The name of the placement group for the instance.

hostId String

The ID of the Dedicated Host for the instance.

hostResourceGroupArn String

The ARN of the Host Resource Group in which to launch instances.

partitionNumber Number

The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition.

spreadDomain String

Reserved for future use.

tenancy String

The tenancy of the instance (if the instance is running in a VPC). Can be default, dedicated, or host.

LaunchTemplatePrivateDnsNameOptions

EnableResourceNameDnsARecord bool

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

EnableResourceNameDnsAaaaRecord bool

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

HostnameType string

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name.

EnableResourceNameDnsARecord bool

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

EnableResourceNameDnsAaaaRecord bool

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

HostnameType string

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name.

enableResourceNameDnsARecord Boolean

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

enableResourceNameDnsAaaaRecord Boolean

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

hostnameType String

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name.

enableResourceNameDnsARecord boolean

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

enableResourceNameDnsAaaaRecord boolean

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

hostnameType string

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name.

enable_resource_name_dns_a_record bool

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

enable_resource_name_dns_aaaa_record bool

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

hostname_type str

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name.

enableResourceNameDnsARecord Boolean

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

enableResourceNameDnsAaaaRecord Boolean

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

hostnameType String

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 native subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. Valid values: ip-name and resource-name.

LaunchTemplateTagSpecification

ResourceType string

The type of resource to tag.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

ResourceType string

The type of resource to tag.

Tags map[string]string

A map of tags to assign to the resource.

resourceType String

The type of resource to tag.

tags Map<String,String>

A map of tags to assign to the resource.

resourceType string

The type of resource to tag.

tags {[key: string]: string}

A map of tags to assign to the resource.

resource_type str

The type of resource to tag.

tags Mapping[str, str]

A map of tags to assign to the resource.

resourceType String

The type of resource to tag.

tags Map<String>

A map of tags to assign to the resource.

Import

Launch Templates can be imported using the id, e.g.,

 $ pulumi import aws:ec2/launchTemplate:LaunchTemplate web lt-12345678

Package Details

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

This Pulumi package is based on the aws Terraform Provider.