Try AWS Native preview for resources not in the classic version.
aws.ec2.LaunchTemplate
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides an EC2 launch template resource. Can be used to create instances or auto scaling groups.
Create LaunchTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LaunchTemplate(name: string, args?: LaunchTemplateArgs, opts?: CustomResourceOptions);
@overload
def LaunchTemplate(resource_name: str,
args: Optional[LaunchTemplateArgs] = None,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var launchTemplateResource = new Aws.Ec2.LaunchTemplate("launchTemplateResource", new()
{
BlockDeviceMappings = new[]
{
new Aws.Ec2.Inputs.LaunchTemplateBlockDeviceMappingArgs
{
DeviceName = "string",
Ebs = new Aws.Ec2.Inputs.LaunchTemplateBlockDeviceMappingEbsArgs
{
DeleteOnTermination = "string",
Encrypted = "string",
Iops = 0,
KmsKeyId = "string",
SnapshotId = "string",
Throughput = 0,
VolumeSize = 0,
VolumeType = "string",
},
NoDevice = "string",
VirtualName = "string",
},
},
CapacityReservationSpecification = new Aws.Ec2.Inputs.LaunchTemplateCapacityReservationSpecificationArgs
{
CapacityReservationPreference = "string",
CapacityReservationTarget = new Aws.Ec2.Inputs.LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgs
{
CapacityReservationId = "string",
CapacityReservationResourceGroupArn = "string",
},
},
CpuOptions = new Aws.Ec2.Inputs.LaunchTemplateCpuOptionsArgs
{
AmdSevSnp = "string",
CoreCount = 0,
ThreadsPerCore = 0,
},
CreditSpecification = new Aws.Ec2.Inputs.LaunchTemplateCreditSpecificationArgs
{
CpuCredits = "string",
},
DefaultVersion = 0,
Description = "string",
DisableApiStop = false,
DisableApiTermination = false,
EbsOptimized = "string",
ElasticGpuSpecifications = new[]
{
new Aws.Ec2.Inputs.LaunchTemplateElasticGpuSpecificationArgs
{
Type = "string",
},
},
ElasticInferenceAccelerator = new Aws.Ec2.Inputs.LaunchTemplateElasticInferenceAcceleratorArgs
{
Type = "string",
},
EnclaveOptions = new Aws.Ec2.Inputs.LaunchTemplateEnclaveOptionsArgs
{
Enabled = false,
},
HibernationOptions = new Aws.Ec2.Inputs.LaunchTemplateHibernationOptionsArgs
{
Configured = false,
},
IamInstanceProfile = new Aws.Ec2.Inputs.LaunchTemplateIamInstanceProfileArgs
{
Arn = "string",
Name = "string",
},
ImageId = "string",
InstanceInitiatedShutdownBehavior = "string",
InstanceMarketOptions = new Aws.Ec2.Inputs.LaunchTemplateInstanceMarketOptionsArgs
{
MarketType = "string",
SpotOptions = new Aws.Ec2.Inputs.LaunchTemplateInstanceMarketOptionsSpotOptionsArgs
{
BlockDurationMinutes = 0,
InstanceInterruptionBehavior = "string",
MaxPrice = "string",
SpotInstanceType = "string",
ValidUntil = "string",
},
},
InstanceRequirements = new Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsArgs
{
MemoryMib = new Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsMemoryMibArgs
{
Min = 0,
Max = 0,
},
VcpuCount = new Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsVcpuCountArgs
{
Min = 0,
Max = 0,
},
LocalStorage = "string",
AcceleratorTypes = new[]
{
"string",
},
LocalStorageTypes = new[]
{
"string",
},
AllowedInstanceTypes = new[]
{
"string",
},
BareMetal = "string",
BaselineEbsBandwidthMbps = new Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbpsArgs
{
Max = 0,
Min = 0,
},
BurstablePerformance = "string",
CpuManufacturers = new[]
{
"string",
},
MaxSpotPriceAsPercentageOfOptimalOnDemandPrice = 0,
InstanceGenerations = new[]
{
"string",
},
AcceleratorManufacturers = new[]
{
"string",
},
AcceleratorTotalMemoryMib = new Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMibArgs
{
Max = 0,
Min = 0,
},
ExcludedInstanceTypes = new[]
{
"string",
},
MemoryGibPerVcpu = new Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsMemoryGibPerVcpuArgs
{
Max = 0,
Min = 0,
},
AcceleratorNames = new[]
{
"string",
},
NetworkBandwidthGbps = new Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsNetworkBandwidthGbpsArgs
{
Max = 0,
Min = 0,
},
NetworkInterfaceCount = new Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsNetworkInterfaceCountArgs
{
Max = 0,
Min = 0,
},
OnDemandMaxPricePercentageOverLowestPrice = 0,
RequireHibernateSupport = false,
SpotMaxPricePercentageOverLowestPrice = 0,
TotalLocalStorageGb = new Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsTotalLocalStorageGbArgs
{
Max = 0,
Min = 0,
},
AcceleratorCount = new Aws.Ec2.Inputs.LaunchTemplateInstanceRequirementsAcceleratorCountArgs
{
Max = 0,
Min = 0,
},
},
InstanceType = "string",
KernelId = "string",
KeyName = "string",
LicenseSpecifications = new[]
{
new Aws.Ec2.Inputs.LaunchTemplateLicenseSpecificationArgs
{
LicenseConfigurationArn = "string",
},
},
MaintenanceOptions = new Aws.Ec2.Inputs.LaunchTemplateMaintenanceOptionsArgs
{
AutoRecovery = "string",
},
MetadataOptions = new Aws.Ec2.Inputs.LaunchTemplateMetadataOptionsArgs
{
HttpEndpoint = "string",
HttpProtocolIpv6 = "string",
HttpPutResponseHopLimit = 0,
HttpTokens = "string",
InstanceMetadataTags = "string",
},
Monitoring = new Aws.Ec2.Inputs.LaunchTemplateMonitoringArgs
{
Enabled = false,
},
Name = "string",
NamePrefix = "string",
NetworkInterfaces = new[]
{
new Aws.Ec2.Inputs.LaunchTemplateNetworkInterfaceArgs
{
AssociateCarrierIpAddress = "string",
AssociatePublicIpAddress = "string",
DeleteOnTermination = "string",
Description = "string",
DeviceIndex = 0,
InterfaceType = "string",
Ipv4AddressCount = 0,
Ipv4Addresses = new[]
{
"string",
},
Ipv4PrefixCount = 0,
Ipv4Prefixes = new[]
{
"string",
},
Ipv6AddressCount = 0,
Ipv6Addresses = new[]
{
"string",
},
Ipv6PrefixCount = 0,
Ipv6Prefixes = new[]
{
"string",
},
NetworkCardIndex = 0,
NetworkInterfaceId = "string",
PrivateIpAddress = "string",
SecurityGroups = new[]
{
"string",
},
SubnetId = "string",
},
},
Placement = new Aws.Ec2.Inputs.LaunchTemplatePlacementArgs
{
Affinity = "string",
AvailabilityZone = "string",
GroupName = "string",
HostId = "string",
HostResourceGroupArn = "string",
PartitionNumber = 0,
SpreadDomain = "string",
Tenancy = "string",
},
PrivateDnsNameOptions = new Aws.Ec2.Inputs.LaunchTemplatePrivateDnsNameOptionsArgs
{
EnableResourceNameDnsARecord = false,
EnableResourceNameDnsAaaaRecord = false,
HostnameType = "string",
},
RamDiskId = "string",
SecurityGroupNames = new[]
{
"string",
},
TagSpecifications = new[]
{
new Aws.Ec2.Inputs.LaunchTemplateTagSpecificationArgs
{
ResourceType = "string",
Tags =
{
{ "string", "string" },
},
},
},
Tags =
{
{ "string", "string" },
},
UpdateDefaultVersion = false,
UserData = "string",
VpcSecurityGroupIds = new[]
{
"string",
},
});
example, err := ec2.NewLaunchTemplate(ctx, "launchTemplateResource", &ec2.LaunchTemplateArgs{
BlockDeviceMappings: ec2.LaunchTemplateBlockDeviceMappingArray{
&ec2.LaunchTemplateBlockDeviceMappingArgs{
DeviceName: pulumi.String("string"),
Ebs: &ec2.LaunchTemplateBlockDeviceMappingEbsArgs{
DeleteOnTermination: pulumi.String("string"),
Encrypted: pulumi.String("string"),
Iops: pulumi.Int(0),
KmsKeyId: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
Throughput: pulumi.Int(0),
VolumeSize: pulumi.Int(0),
VolumeType: pulumi.String("string"),
},
NoDevice: pulumi.String("string"),
VirtualName: pulumi.String("string"),
},
},
CapacityReservationSpecification: &ec2.LaunchTemplateCapacityReservationSpecificationArgs{
CapacityReservationPreference: pulumi.String("string"),
CapacityReservationTarget: &ec2.LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgs{
CapacityReservationId: pulumi.String("string"),
CapacityReservationResourceGroupArn: pulumi.String("string"),
},
},
CpuOptions: &ec2.LaunchTemplateCpuOptionsArgs{
AmdSevSnp: pulumi.String("string"),
CoreCount: pulumi.Int(0),
ThreadsPerCore: pulumi.Int(0),
},
CreditSpecification: &ec2.LaunchTemplateCreditSpecificationArgs{
CpuCredits: pulumi.String("string"),
},
DefaultVersion: pulumi.Int(0),
Description: pulumi.String("string"),
DisableApiStop: pulumi.Bool(false),
DisableApiTermination: pulumi.Bool(false),
EbsOptimized: pulumi.String("string"),
ElasticGpuSpecifications: ec2.LaunchTemplateElasticGpuSpecificationArray{
&ec2.LaunchTemplateElasticGpuSpecificationArgs{
Type: pulumi.String("string"),
},
},
ElasticInferenceAccelerator: &ec2.LaunchTemplateElasticInferenceAcceleratorArgs{
Type: pulumi.String("string"),
},
EnclaveOptions: &ec2.LaunchTemplateEnclaveOptionsArgs{
Enabled: pulumi.Bool(false),
},
HibernationOptions: &ec2.LaunchTemplateHibernationOptionsArgs{
Configured: pulumi.Bool(false),
},
IamInstanceProfile: &ec2.LaunchTemplateIamInstanceProfileArgs{
Arn: pulumi.String("string"),
Name: pulumi.String("string"),
},
ImageId: pulumi.String("string"),
InstanceInitiatedShutdownBehavior: pulumi.String("string"),
InstanceMarketOptions: &ec2.LaunchTemplateInstanceMarketOptionsArgs{
MarketType: pulumi.String("string"),
SpotOptions: &ec2.LaunchTemplateInstanceMarketOptionsSpotOptionsArgs{
BlockDurationMinutes: pulumi.Int(0),
InstanceInterruptionBehavior: pulumi.String("string"),
MaxPrice: pulumi.String("string"),
SpotInstanceType: pulumi.String("string"),
ValidUntil: pulumi.String("string"),
},
},
InstanceRequirements: &ec2.LaunchTemplateInstanceRequirementsArgs{
MemoryMib: &ec2.LaunchTemplateInstanceRequirementsMemoryMibArgs{
Min: pulumi.Int(0),
Max: pulumi.Int(0),
},
VcpuCount: &ec2.LaunchTemplateInstanceRequirementsVcpuCountArgs{
Min: pulumi.Int(0),
Max: pulumi.Int(0),
},
LocalStorage: pulumi.String("string"),
AcceleratorTypes: pulumi.StringArray{
pulumi.String("string"),
},
LocalStorageTypes: pulumi.StringArray{
pulumi.String("string"),
},
AllowedInstanceTypes: pulumi.StringArray{
pulumi.String("string"),
},
BareMetal: pulumi.String("string"),
BaselineEbsBandwidthMbps: &ec2.LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbpsArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
BurstablePerformance: pulumi.String("string"),
CpuManufacturers: pulumi.StringArray{
pulumi.String("string"),
},
MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: pulumi.Int(0),
InstanceGenerations: pulumi.StringArray{
pulumi.String("string"),
},
AcceleratorManufacturers: pulumi.StringArray{
pulumi.String("string"),
},
AcceleratorTotalMemoryMib: &ec2.LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMibArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
ExcludedInstanceTypes: pulumi.StringArray{
pulumi.String("string"),
},
MemoryGibPerVcpu: &ec2.LaunchTemplateInstanceRequirementsMemoryGibPerVcpuArgs{
Max: pulumi.Float64(0),
Min: pulumi.Float64(0),
},
AcceleratorNames: pulumi.StringArray{
pulumi.String("string"),
},
NetworkBandwidthGbps: &ec2.LaunchTemplateInstanceRequirementsNetworkBandwidthGbpsArgs{
Max: pulumi.Float64(0),
Min: pulumi.Float64(0),
},
NetworkInterfaceCount: &ec2.LaunchTemplateInstanceRequirementsNetworkInterfaceCountArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
OnDemandMaxPricePercentageOverLowestPrice: pulumi.Int(0),
RequireHibernateSupport: pulumi.Bool(false),
SpotMaxPricePercentageOverLowestPrice: pulumi.Int(0),
TotalLocalStorageGb: &ec2.LaunchTemplateInstanceRequirementsTotalLocalStorageGbArgs{
Max: pulumi.Float64(0),
Min: pulumi.Float64(0),
},
AcceleratorCount: &ec2.LaunchTemplateInstanceRequirementsAcceleratorCountArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
},
InstanceType: pulumi.String("string"),
KernelId: pulumi.String("string"),
KeyName: pulumi.String("string"),
LicenseSpecifications: ec2.LaunchTemplateLicenseSpecificationArray{
&ec2.LaunchTemplateLicenseSpecificationArgs{
LicenseConfigurationArn: pulumi.String("string"),
},
},
MaintenanceOptions: &ec2.LaunchTemplateMaintenanceOptionsArgs{
AutoRecovery: pulumi.String("string"),
},
MetadataOptions: &ec2.LaunchTemplateMetadataOptionsArgs{
HttpEndpoint: pulumi.String("string"),
HttpProtocolIpv6: pulumi.String("string"),
HttpPutResponseHopLimit: pulumi.Int(0),
HttpTokens: pulumi.String("string"),
InstanceMetadataTags: pulumi.String("string"),
},
Monitoring: &ec2.LaunchTemplateMonitoringArgs{
Enabled: pulumi.Bool(false),
},
Name: pulumi.String("string"),
NamePrefix: pulumi.String("string"),
NetworkInterfaces: ec2.LaunchTemplateNetworkInterfaceArray{
&ec2.LaunchTemplateNetworkInterfaceArgs{
AssociateCarrierIpAddress: pulumi.String("string"),
AssociatePublicIpAddress: pulumi.String("string"),
DeleteOnTermination: pulumi.String("string"),
Description: pulumi.String("string"),
DeviceIndex: pulumi.Int(0),
InterfaceType: pulumi.String("string"),
Ipv4AddressCount: pulumi.Int(0),
Ipv4Addresses: pulumi.StringArray{
pulumi.String("string"),
},
Ipv4PrefixCount: pulumi.Int(0),
Ipv4Prefixes: pulumi.StringArray{
pulumi.String("string"),
},
Ipv6AddressCount: pulumi.Int(0),
Ipv6Addresses: pulumi.StringArray{
pulumi.String("string"),
},
Ipv6PrefixCount: pulumi.Int(0),
Ipv6Prefixes: pulumi.StringArray{
pulumi.String("string"),
},
NetworkCardIndex: pulumi.Int(0),
NetworkInterfaceId: pulumi.String("string"),
PrivateIpAddress: pulumi.String("string"),
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
SubnetId: pulumi.String("string"),
},
},
Placement: &ec2.LaunchTemplatePlacementArgs{
Affinity: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
GroupName: pulumi.String("string"),
HostId: pulumi.String("string"),
HostResourceGroupArn: pulumi.String("string"),
PartitionNumber: pulumi.Int(0),
SpreadDomain: pulumi.String("string"),
Tenancy: pulumi.String("string"),
},
PrivateDnsNameOptions: &ec2.LaunchTemplatePrivateDnsNameOptionsArgs{
EnableResourceNameDnsARecord: pulumi.Bool(false),
EnableResourceNameDnsAaaaRecord: pulumi.Bool(false),
HostnameType: pulumi.String("string"),
},
RamDiskId: pulumi.String("string"),
SecurityGroupNames: pulumi.StringArray{
pulumi.String("string"),
},
TagSpecifications: ec2.LaunchTemplateTagSpecificationArray{
&ec2.LaunchTemplateTagSpecificationArgs{
ResourceType: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UpdateDefaultVersion: pulumi.Bool(false),
UserData: pulumi.String("string"),
VpcSecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
})
var launchTemplateResource = new LaunchTemplate("launchTemplateResource", LaunchTemplateArgs.builder()
.blockDeviceMappings(LaunchTemplateBlockDeviceMappingArgs.builder()
.deviceName("string")
.ebs(LaunchTemplateBlockDeviceMappingEbsArgs.builder()
.deleteOnTermination("string")
.encrypted("string")
.iops(0)
.kmsKeyId("string")
.snapshotId("string")
.throughput(0)
.volumeSize(0)
.volumeType("string")
.build())
.noDevice("string")
.virtualName("string")
.build())
.capacityReservationSpecification(LaunchTemplateCapacityReservationSpecificationArgs.builder()
.capacityReservationPreference("string")
.capacityReservationTarget(LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgs.builder()
.capacityReservationId("string")
.capacityReservationResourceGroupArn("string")
.build())
.build())
.cpuOptions(LaunchTemplateCpuOptionsArgs.builder()
.amdSevSnp("string")
.coreCount(0)
.threadsPerCore(0)
.build())
.creditSpecification(LaunchTemplateCreditSpecificationArgs.builder()
.cpuCredits("string")
.build())
.defaultVersion(0)
.description("string")
.disableApiStop(false)
.disableApiTermination(false)
.ebsOptimized("string")
.elasticGpuSpecifications(LaunchTemplateElasticGpuSpecificationArgs.builder()
.type("string")
.build())
.elasticInferenceAccelerator(LaunchTemplateElasticInferenceAcceleratorArgs.builder()
.type("string")
.build())
.enclaveOptions(LaunchTemplateEnclaveOptionsArgs.builder()
.enabled(false)
.build())
.hibernationOptions(LaunchTemplateHibernationOptionsArgs.builder()
.configured(false)
.build())
.iamInstanceProfile(LaunchTemplateIamInstanceProfileArgs.builder()
.arn("string")
.name("string")
.build())
.imageId("string")
.instanceInitiatedShutdownBehavior("string")
.instanceMarketOptions(LaunchTemplateInstanceMarketOptionsArgs.builder()
.marketType("string")
.spotOptions(LaunchTemplateInstanceMarketOptionsSpotOptionsArgs.builder()
.blockDurationMinutes(0)
.instanceInterruptionBehavior("string")
.maxPrice("string")
.spotInstanceType("string")
.validUntil("string")
.build())
.build())
.instanceRequirements(LaunchTemplateInstanceRequirementsArgs.builder()
.memoryMib(LaunchTemplateInstanceRequirementsMemoryMibArgs.builder()
.min(0)
.max(0)
.build())
.vcpuCount(LaunchTemplateInstanceRequirementsVcpuCountArgs.builder()
.min(0)
.max(0)
.build())
.localStorage("string")
.acceleratorTypes("string")
.localStorageTypes("string")
.allowedInstanceTypes("string")
.bareMetal("string")
.baselineEbsBandwidthMbps(LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbpsArgs.builder()
.max(0)
.min(0)
.build())
.burstablePerformance("string")
.cpuManufacturers("string")
.maxSpotPriceAsPercentageOfOptimalOnDemandPrice(0)
.instanceGenerations("string")
.acceleratorManufacturers("string")
.acceleratorTotalMemoryMib(LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMibArgs.builder()
.max(0)
.min(0)
.build())
.excludedInstanceTypes("string")
.memoryGibPerVcpu(LaunchTemplateInstanceRequirementsMemoryGibPerVcpuArgs.builder()
.max(0)
.min(0)
.build())
.acceleratorNames("string")
.networkBandwidthGbps(LaunchTemplateInstanceRequirementsNetworkBandwidthGbpsArgs.builder()
.max(0)
.min(0)
.build())
.networkInterfaceCount(LaunchTemplateInstanceRequirementsNetworkInterfaceCountArgs.builder()
.max(0)
.min(0)
.build())
.onDemandMaxPricePercentageOverLowestPrice(0)
.requireHibernateSupport(false)
.spotMaxPricePercentageOverLowestPrice(0)
.totalLocalStorageGb(LaunchTemplateInstanceRequirementsTotalLocalStorageGbArgs.builder()
.max(0)
.min(0)
.build())
.acceleratorCount(LaunchTemplateInstanceRequirementsAcceleratorCountArgs.builder()
.max(0)
.min(0)
.build())
.build())
.instanceType("string")
.kernelId("string")
.keyName("string")
.licenseSpecifications(LaunchTemplateLicenseSpecificationArgs.builder()
.licenseConfigurationArn("string")
.build())
.maintenanceOptions(LaunchTemplateMaintenanceOptionsArgs.builder()
.autoRecovery("string")
.build())
.metadataOptions(LaunchTemplateMetadataOptionsArgs.builder()
.httpEndpoint("string")
.httpProtocolIpv6("string")
.httpPutResponseHopLimit(0)
.httpTokens("string")
.instanceMetadataTags("string")
.build())
.monitoring(LaunchTemplateMonitoringArgs.builder()
.enabled(false)
.build())
.name("string")
.namePrefix("string")
.networkInterfaces(LaunchTemplateNetworkInterfaceArgs.builder()
.associateCarrierIpAddress("string")
.associatePublicIpAddress("string")
.deleteOnTermination("string")
.description("string")
.deviceIndex(0)
.interfaceType("string")
.ipv4AddressCount(0)
.ipv4Addresses("string")
.ipv4PrefixCount(0)
.ipv4Prefixes("string")
.ipv6AddressCount(0)
.ipv6Addresses("string")
.ipv6PrefixCount(0)
.ipv6Prefixes("string")
.networkCardIndex(0)
.networkInterfaceId("string")
.privateIpAddress("string")
.securityGroups("string")
.subnetId("string")
.build())
.placement(LaunchTemplatePlacementArgs.builder()
.affinity("string")
.availabilityZone("string")
.groupName("string")
.hostId("string")
.hostResourceGroupArn("string")
.partitionNumber(0)
.spreadDomain("string")
.tenancy("string")
.build())
.privateDnsNameOptions(LaunchTemplatePrivateDnsNameOptionsArgs.builder()
.enableResourceNameDnsARecord(false)
.enableResourceNameDnsAaaaRecord(false)
.hostnameType("string")
.build())
.ramDiskId("string")
.securityGroupNames("string")
.tagSpecifications(LaunchTemplateTagSpecificationArgs.builder()
.resourceType("string")
.tags(Map.of("string", "string"))
.build())
.tags(Map.of("string", "string"))
.updateDefaultVersion(false)
.userData("string")
.vpcSecurityGroupIds("string")
.build());
launch_template_resource = aws.ec2.LaunchTemplate("launchTemplateResource",
block_device_mappings=[{
"deviceName": "string",
"ebs": {
"deleteOnTermination": "string",
"encrypted": "string",
"iops": 0,
"kmsKeyId": "string",
"snapshotId": "string",
"throughput": 0,
"volumeSize": 0,
"volumeType": "string",
},
"noDevice": "string",
"virtualName": "string",
}],
capacity_reservation_specification={
"capacityReservationPreference": "string",
"capacityReservationTarget": {
"capacityReservationId": "string",
"capacityReservationResourceGroupArn": "string",
},
},
cpu_options={
"amdSevSnp": "string",
"coreCount": 0,
"threadsPerCore": 0,
},
credit_specification={
"cpuCredits": "string",
},
default_version=0,
description="string",
disable_api_stop=False,
disable_api_termination=False,
ebs_optimized="string",
elastic_gpu_specifications=[{
"type": "string",
}],
elastic_inference_accelerator={
"type": "string",
},
enclave_options={
"enabled": False,
},
hibernation_options={
"configured": False,
},
iam_instance_profile={
"arn": "string",
"name": "string",
},
image_id="string",
instance_initiated_shutdown_behavior="string",
instance_market_options={
"marketType": "string",
"spotOptions": {
"blockDurationMinutes": 0,
"instanceInterruptionBehavior": "string",
"maxPrice": "string",
"spotInstanceType": "string",
"validUntil": "string",
},
},
instance_requirements={
"memoryMib": {
"min": 0,
"max": 0,
},
"vcpuCount": {
"min": 0,
"max": 0,
},
"localStorage": "string",
"acceleratorTypes": ["string"],
"localStorageTypes": ["string"],
"allowedInstanceTypes": ["string"],
"bareMetal": "string",
"baselineEbsBandwidthMbps": {
"max": 0,
"min": 0,
},
"burstablePerformance": "string",
"cpuManufacturers": ["string"],
"maxSpotPriceAsPercentageOfOptimalOnDemandPrice": 0,
"instanceGenerations": ["string"],
"acceleratorManufacturers": ["string"],
"acceleratorTotalMemoryMib": {
"max": 0,
"min": 0,
},
"excludedInstanceTypes": ["string"],
"memoryGibPerVcpu": {
"max": 0,
"min": 0,
},
"acceleratorNames": ["string"],
"networkBandwidthGbps": {
"max": 0,
"min": 0,
},
"networkInterfaceCount": {
"max": 0,
"min": 0,
},
"onDemandMaxPricePercentageOverLowestPrice": 0,
"requireHibernateSupport": False,
"spotMaxPricePercentageOverLowestPrice": 0,
"totalLocalStorageGb": {
"max": 0,
"min": 0,
},
"acceleratorCount": {
"max": 0,
"min": 0,
},
},
instance_type="string",
kernel_id="string",
key_name="string",
license_specifications=[{
"licenseConfigurationArn": "string",
}],
maintenance_options={
"autoRecovery": "string",
},
metadata_options={
"httpEndpoint": "string",
"httpProtocolIpv6": "string",
"httpPutResponseHopLimit": 0,
"httpTokens": "string",
"instanceMetadataTags": "string",
},
monitoring={
"enabled": False,
},
name="string",
name_prefix="string",
network_interfaces=[{
"associateCarrierIpAddress": "string",
"associatePublicIpAddress": "string",
"deleteOnTermination": "string",
"description": "string",
"deviceIndex": 0,
"interfaceType": "string",
"ipv4AddressCount": 0,
"ipv4Addresses": ["string"],
"ipv4PrefixCount": 0,
"ipv4Prefixes": ["string"],
"ipv6AddressCount": 0,
"ipv6Addresses": ["string"],
"ipv6PrefixCount": 0,
"ipv6Prefixes": ["string"],
"networkCardIndex": 0,
"networkInterfaceId": "string",
"privateIpAddress": "string",
"securityGroups": ["string"],
"subnetId": "string",
}],
placement={
"affinity": "string",
"availabilityZone": "string",
"groupName": "string",
"hostId": "string",
"hostResourceGroupArn": "string",
"partitionNumber": 0,
"spreadDomain": "string",
"tenancy": "string",
},
private_dns_name_options={
"enableResourceNameDnsARecord": False,
"enableResourceNameDnsAaaaRecord": False,
"hostnameType": "string",
},
ram_disk_id="string",
security_group_names=["string"],
tag_specifications=[{
"resourceType": "string",
"tags": {
"string": "string",
},
}],
tags={
"string": "string",
},
update_default_version=False,
user_data="string",
vpc_security_group_ids=["string"])
const launchTemplateResource = new aws.ec2.LaunchTemplate("launchTemplateResource", {
blockDeviceMappings: [{
deviceName: "string",
ebs: {
deleteOnTermination: "string",
encrypted: "string",
iops: 0,
kmsKeyId: "string",
snapshotId: "string",
throughput: 0,
volumeSize: 0,
volumeType: "string",
},
noDevice: "string",
virtualName: "string",
}],
capacityReservationSpecification: {
capacityReservationPreference: "string",
capacityReservationTarget: {
capacityReservationId: "string",
capacityReservationResourceGroupArn: "string",
},
},
cpuOptions: {
amdSevSnp: "string",
coreCount: 0,
threadsPerCore: 0,
},
creditSpecification: {
cpuCredits: "string",
},
defaultVersion: 0,
description: "string",
disableApiStop: false,
disableApiTermination: false,
ebsOptimized: "string",
elasticGpuSpecifications: [{
type: "string",
}],
elasticInferenceAccelerator: {
type: "string",
},
enclaveOptions: {
enabled: false,
},
hibernationOptions: {
configured: false,
},
iamInstanceProfile: {
arn: "string",
name: "string",
},
imageId: "string",
instanceInitiatedShutdownBehavior: "string",
instanceMarketOptions: {
marketType: "string",
spotOptions: {
blockDurationMinutes: 0,
instanceInterruptionBehavior: "string",
maxPrice: "string",
spotInstanceType: "string",
validUntil: "string",
},
},
instanceRequirements: {
memoryMib: {
min: 0,
max: 0,
},
vcpuCount: {
min: 0,
max: 0,
},
localStorage: "string",
acceleratorTypes: ["string"],
localStorageTypes: ["string"],
allowedInstanceTypes: ["string"],
bareMetal: "string",
baselineEbsBandwidthMbps: {
max: 0,
min: 0,
},
burstablePerformance: "string",
cpuManufacturers: ["string"],
maxSpotPriceAsPercentageOfOptimalOnDemandPrice: 0,
instanceGenerations: ["string"],
acceleratorManufacturers: ["string"],
acceleratorTotalMemoryMib: {
max: 0,
min: 0,
},
excludedInstanceTypes: ["string"],
memoryGibPerVcpu: {
max: 0,
min: 0,
},
acceleratorNames: ["string"],
networkBandwidthGbps: {
max: 0,
min: 0,
},
networkInterfaceCount: {
max: 0,
min: 0,
},
onDemandMaxPricePercentageOverLowestPrice: 0,
requireHibernateSupport: false,
spotMaxPricePercentageOverLowestPrice: 0,
totalLocalStorageGb: {
max: 0,
min: 0,
},
acceleratorCount: {
max: 0,
min: 0,
},
},
instanceType: "string",
kernelId: "string",
keyName: "string",
licenseSpecifications: [{
licenseConfigurationArn: "string",
}],
maintenanceOptions: {
autoRecovery: "string",
},
metadataOptions: {
httpEndpoint: "string",
httpProtocolIpv6: "string",
httpPutResponseHopLimit: 0,
httpTokens: "string",
instanceMetadataTags: "string",
},
monitoring: {
enabled: false,
},
name: "string",
namePrefix: "string",
networkInterfaces: [{
associateCarrierIpAddress: "string",
associatePublicIpAddress: "string",
deleteOnTermination: "string",
description: "string",
deviceIndex: 0,
interfaceType: "string",
ipv4AddressCount: 0,
ipv4Addresses: ["string"],
ipv4PrefixCount: 0,
ipv4Prefixes: ["string"],
ipv6AddressCount: 0,
ipv6Addresses: ["string"],
ipv6PrefixCount: 0,
ipv6Prefixes: ["string"],
networkCardIndex: 0,
networkInterfaceId: "string",
privateIpAddress: "string",
securityGroups: ["string"],
subnetId: "string",
}],
placement: {
affinity: "string",
availabilityZone: "string",
groupName: "string",
hostId: "string",
hostResourceGroupArn: "string",
partitionNumber: 0,
spreadDomain: "string",
tenancy: "string",
},
privateDnsNameOptions: {
enableResourceNameDnsARecord: false,
enableResourceNameDnsAaaaRecord: false,
hostnameType: "string",
},
ramDiskId: "string",
securityGroupNames: ["string"],
tagSpecifications: [{
resourceType: "string",
tags: {
string: "string",
},
}],
tags: {
string: "string",
},
updateDefaultVersion: false,
userData: "string",
vpcSecurityGroupIds: ["string"],
});
type: aws:ec2:LaunchTemplate
properties:
blockDeviceMappings:
- deviceName: string
ebs:
deleteOnTermination: string
encrypted: string
iops: 0
kmsKeyId: string
snapshotId: string
throughput: 0
volumeSize: 0
volumeType: string
noDevice: string
virtualName: string
capacityReservationSpecification:
capacityReservationPreference: string
capacityReservationTarget:
capacityReservationId: string
capacityReservationResourceGroupArn: string
cpuOptions:
amdSevSnp: string
coreCount: 0
threadsPerCore: 0
creditSpecification:
cpuCredits: string
defaultVersion: 0
description: string
disableApiStop: false
disableApiTermination: false
ebsOptimized: string
elasticGpuSpecifications:
- type: string
elasticInferenceAccelerator:
type: string
enclaveOptions:
enabled: false
hibernationOptions:
configured: false
iamInstanceProfile:
arn: string
name: string
imageId: string
instanceInitiatedShutdownBehavior: string
instanceMarketOptions:
marketType: string
spotOptions:
blockDurationMinutes: 0
instanceInterruptionBehavior: string
maxPrice: string
spotInstanceType: string
validUntil: string
instanceRequirements:
acceleratorCount:
max: 0
min: 0
acceleratorManufacturers:
- string
acceleratorNames:
- string
acceleratorTotalMemoryMib:
max: 0
min: 0
acceleratorTypes:
- string
allowedInstanceTypes:
- string
bareMetal: string
baselineEbsBandwidthMbps:
max: 0
min: 0
burstablePerformance: string
cpuManufacturers:
- string
excludedInstanceTypes:
- string
instanceGenerations:
- string
localStorage: string
localStorageTypes:
- string
maxSpotPriceAsPercentageOfOptimalOnDemandPrice: 0
memoryGibPerVcpu:
max: 0
min: 0
memoryMib:
max: 0
min: 0
networkBandwidthGbps:
max: 0
min: 0
networkInterfaceCount:
max: 0
min: 0
onDemandMaxPricePercentageOverLowestPrice: 0
requireHibernateSupport: false
spotMaxPricePercentageOverLowestPrice: 0
totalLocalStorageGb:
max: 0
min: 0
vcpuCount:
max: 0
min: 0
instanceType: string
kernelId: string
keyName: string
licenseSpecifications:
- licenseConfigurationArn: string
maintenanceOptions:
autoRecovery: string
metadataOptions:
httpEndpoint: string
httpProtocolIpv6: string
httpPutResponseHopLimit: 0
httpTokens: string
instanceMetadataTags: string
monitoring:
enabled: false
name: string
namePrefix: string
networkInterfaces:
- associateCarrierIpAddress: string
associatePublicIpAddress: string
deleteOnTermination: string
description: string
deviceIndex: 0
interfaceType: string
ipv4AddressCount: 0
ipv4Addresses:
- string
ipv4PrefixCount: 0
ipv4Prefixes:
- string
ipv6AddressCount: 0
ipv6Addresses:
- string
ipv6PrefixCount: 0
ipv6Prefixes:
- string
networkCardIndex: 0
networkInterfaceId: string
privateIpAddress: string
securityGroups:
- string
subnetId: string
placement:
affinity: string
availabilityZone: string
groupName: string
hostId: string
hostResourceGroupArn: string
partitionNumber: 0
spreadDomain: string
tenancy: string
privateDnsNameOptions:
enableResourceNameDnsARecord: false
enableResourceNameDnsAaaaRecord: false
hostnameType: string
ramDiskId: string
securityGroupNames:
- string
tagSpecifications:
- resourceType: string
tags:
string: string
tags:
string: string
updateDefaultVersion: false
userData: string
vpcSecurityGroupIds:
- string
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:
- Block
Device List<LaunchMappings Template Block Device Mapping> - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- Capacity
Reservation LaunchSpecification Template Capacity Reservation Specification - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- Cpu
Options LaunchTemplate Cpu Options - The CPU options for the instance. See CPU Options below for more details.
- Credit
Specification LaunchTemplate Credit Specification - Customize the credit specification of the instance. See Credit Specification below for more details.
- Default
Version int - Default Version of the launch template.
- Description string
- Description of the launch template.
- Disable
Api boolStop - If true, enables EC2 Instance Stop Protection.
- Disable
Api boolTermination - If
true
, enables EC2 Instance Termination Protection - Ebs
Optimized string - If
true
, the launched EC2 instance will be EBS-optimized. - Elastic
Gpu List<LaunchSpecifications Template Elastic Gpu Specification> - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- Elastic
Inference LaunchAccelerator Template Elastic Inference Accelerator - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- Enclave
Options LaunchTemplate Enclave Options - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- Hibernation
Options LaunchTemplate Hibernation Options - The hibernation options for the instance. See Hibernation Options below for more details.
- Iam
Instance LaunchProfile Template Iam Instance Profile - The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
- Image
Id string - The AMI from which to launch the instance or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - Instance
Initiated stringShutdown Behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - Instance
Market LaunchOptions Template Instance Market Options - The market (purchasing) option for the instance. See Market Options below for details.
- Instance
Requirements LaunchTemplate Instance Requirements - The attribute requirements for the type of instance. If present then
instance_type
cannot be present. - Instance
Type string - The type of the instance. If present then
instance_requirements
cannot be present. - Kernel
Id string - The kernel ID.
- Key
Name string - The key name to use for the instance.
- License
Specifications List<LaunchTemplate License Specification> - A list of license specifications to associate with. See License Specification below for more details.
- Maintenance
Options LaunchTemplate Maintenance Options - The maintenance options for the instance. See Maintenance Options below for more details.
- Metadata
Options LaunchTemplate Metadata Options - Customize the metadata options for the instance. See Metadata Options below for more details.
- Monitoring
Launch
Template Monitoring - 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.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Network
Interfaces List<LaunchTemplate Network Interface> - Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
- Placement
Launch
Template Placement - The placement of the instance. See Placement below for more details.
- Private
Dns LaunchName Options Template Private Dns Name Options - 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 stringId - The ID of the RAM disk.
- Security
Group List<string>Names - A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead. - List<Launch
Template Tag Specification> - The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- 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. - Update
Default boolVersion - Whether to update Default Version each update. Conflicts with
default_version
. - User
Data string - The base64-encoded user data to provide when launching the instance.
- Vpc
Security List<string>Group Ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
- Block
Device []LaunchMappings Template Block Device Mapping Args - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- Capacity
Reservation LaunchSpecification Template Capacity Reservation Specification Args - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- Cpu
Options LaunchTemplate Cpu Options Args - The CPU options for the instance. See CPU Options below for more details.
- Credit
Specification LaunchTemplate Credit Specification Args - Customize the credit specification of the instance. See Credit Specification below for more details.
- Default
Version int - Default Version of the launch template.
- Description string
- Description of the launch template.
- Disable
Api boolStop - If true, enables EC2 Instance Stop Protection.
- Disable
Api boolTermination - If
true
, enables EC2 Instance Termination Protection - Ebs
Optimized string - If
true
, the launched EC2 instance will be EBS-optimized. - Elastic
Gpu []LaunchSpecifications Template Elastic Gpu Specification Args - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- Elastic
Inference LaunchAccelerator Template Elastic Inference Accelerator Args - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- Enclave
Options LaunchTemplate Enclave Options Args - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- Hibernation
Options LaunchTemplate Hibernation Options Args - The hibernation options for the instance. See Hibernation Options below for more details.
- Iam
Instance LaunchProfile Template Iam Instance Profile Args - The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
- Image
Id string - The AMI from which to launch the instance or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - Instance
Initiated stringShutdown Behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - Instance
Market LaunchOptions Template Instance Market Options Args - The market (purchasing) option for the instance. See Market Options below for details.
- Instance
Requirements LaunchTemplate Instance Requirements Args - The attribute requirements for the type of instance. If present then
instance_type
cannot be present. - Instance
Type string - The type of the instance. If present then
instance_requirements
cannot be present. - Kernel
Id string - The kernel ID.
- Key
Name string - The key name to use for the instance.
- License
Specifications []LaunchTemplate License Specification Args - A list of license specifications to associate with. See License Specification below for more details.
- Maintenance
Options LaunchTemplate Maintenance Options Args - The maintenance options for the instance. See Maintenance Options below for more details.
- Metadata
Options LaunchTemplate Metadata Options Args - Customize the metadata options for the instance. See Metadata Options below for more details.
- Monitoring
Launch
Template Monitoring Args - 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.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Network
Interfaces []LaunchTemplate Network Interface Args - Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
- Placement
Launch
Template Placement Args - The placement of the instance. See Placement below for more details.
- Private
Dns LaunchName Options Template Private Dns Name Options Args - 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 stringId - The ID of the RAM disk.
- Security
Group []stringNames - A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead. - []Launch
Template Tag Specification Args - The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- 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. - Update
Default boolVersion - Whether to update Default Version each update. Conflicts with
default_version
. - User
Data string - The base64-encoded user data to provide when launching the instance.
- Vpc
Security []stringGroup Ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
- block
Device List<LaunchMappings Template Block Device Mapping> - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- capacity
Reservation LaunchSpecification Template Capacity Reservation Specification - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- cpu
Options LaunchTemplate Cpu Options - The CPU options for the instance. See CPU Options below for more details.
- credit
Specification LaunchTemplate Credit Specification - Customize the credit specification of the instance. See Credit Specification below for more details.
- default
Version Integer - Default Version of the launch template.
- description String
- Description of the launch template.
- disable
Api BooleanStop - If true, enables EC2 Instance Stop Protection.
- disable
Api BooleanTermination - If
true
, enables EC2 Instance Termination Protection - ebs
Optimized String - If
true
, the launched EC2 instance will be EBS-optimized. - elastic
Gpu List<LaunchSpecifications Template Elastic Gpu Specification> - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- elastic
Inference LaunchAccelerator Template Elastic Inference Accelerator - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- enclave
Options LaunchTemplate Enclave Options - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- hibernation
Options LaunchTemplate Hibernation Options - The hibernation options for the instance. See Hibernation Options below for more details.
- iam
Instance LaunchProfile Template Iam Instance Profile - The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
- image
Id String - The AMI from which to launch the instance or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - instance
Initiated StringShutdown Behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - instance
Market LaunchOptions Template Instance Market Options - The market (purchasing) option for the instance. See Market Options below for details.
- instance
Requirements LaunchTemplate Instance Requirements - The attribute requirements for the type of instance. If present then
instance_type
cannot be present. - instance
Type String - The type of the instance. If present then
instance_requirements
cannot be present. - kernel
Id String - The kernel ID.
- key
Name String - The key name to use for the instance.
- license
Specifications List<LaunchTemplate License Specification> - A list of license specifications to associate with. See License Specification below for more details.
- maintenance
Options LaunchTemplate Maintenance Options - The maintenance options for the instance. See Maintenance Options below for more details.
- metadata
Options LaunchTemplate Metadata Options - Customize the metadata options for the instance. See Metadata Options below for more details.
- monitoring
Launch
Template Monitoring - 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.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - network
Interfaces List<LaunchTemplate Network Interface> - Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
- placement
Launch
Template Placement - The placement of the instance. See Placement below for more details.
- private
Dns LaunchName Options Template Private Dns Name Options - 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 StringId - The ID of the RAM disk.
- security
Group List<String>Names - A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead. - List<Launch
Template Tag Specification> - The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- 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. - update
Default BooleanVersion - Whether to update Default Version each update. Conflicts with
default_version
. - user
Data String - The base64-encoded user data to provide when launching the instance.
- vpc
Security List<String>Group Ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
- block
Device LaunchMappings Template Block Device Mapping[] - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- capacity
Reservation LaunchSpecification Template Capacity Reservation Specification - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- cpu
Options LaunchTemplate Cpu Options - The CPU options for the instance. See CPU Options below for more details.
- credit
Specification LaunchTemplate Credit Specification - Customize the credit specification of the instance. See Credit Specification below for more details.
- default
Version number - Default Version of the launch template.
- description string
- Description of the launch template.
- disable
Api booleanStop - If true, enables EC2 Instance Stop Protection.
- disable
Api booleanTermination - If
true
, enables EC2 Instance Termination Protection - ebs
Optimized string - If
true
, the launched EC2 instance will be EBS-optimized. - elastic
Gpu LaunchSpecifications Template Elastic Gpu Specification[] - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- elastic
Inference LaunchAccelerator Template Elastic Inference Accelerator - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- enclave
Options LaunchTemplate Enclave Options - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- hibernation
Options LaunchTemplate Hibernation Options - The hibernation options for the instance. See Hibernation Options below for more details.
- iam
Instance LaunchProfile Template Iam Instance Profile - The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
- image
Id string - The AMI from which to launch the instance or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - instance
Initiated stringShutdown Behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - instance
Market LaunchOptions Template Instance Market Options - The market (purchasing) option for the instance. See Market Options below for details.
- instance
Requirements LaunchTemplate Instance Requirements - The attribute requirements for the type of instance. If present then
instance_type
cannot be present. - instance
Type string - The type of the instance. If present then
instance_requirements
cannot be present. - kernel
Id string - The kernel ID.
- key
Name string - The key name to use for the instance.
- license
Specifications LaunchTemplate License Specification[] - A list of license specifications to associate with. See License Specification below for more details.
- maintenance
Options LaunchTemplate Maintenance Options - The maintenance options for the instance. See Maintenance Options below for more details.
- metadata
Options LaunchTemplate Metadata Options - Customize the metadata options for the instance. See Metadata Options below for more details.
- monitoring
Launch
Template Monitoring - 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.
- name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - network
Interfaces LaunchTemplate Network Interface[] - Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
- placement
Launch
Template Placement - The placement of the instance. See Placement below for more details.
- private
Dns LaunchName Options Template Private Dns Name Options - 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 stringId - The ID of the RAM disk.
- security
Group string[]Names - A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead. - Launch
Template Tag Specification[] - The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- {[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. - update
Default booleanVersion - Whether to update Default Version each update. Conflicts with
default_version
. - user
Data string - The base64-encoded user data to provide when launching the instance.
- vpc
Security string[]Group Ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
- block_
device_ Sequence[Launchmappings Template Block Device Mapping Args] - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- capacity_
reservation_ Launchspecification Template Capacity Reservation Specification Args - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- cpu_
options LaunchTemplate Cpu Options Args - The CPU options for the instance. See CPU Options below for more details.
- credit_
specification LaunchTemplate Credit Specification Args - 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_ boolstop - If true, enables EC2 Instance Stop Protection.
- disable_
api_ booltermination - If
true
, enables EC2 Instance Termination Protection - ebs_
optimized str - If
true
, the launched EC2 instance will be EBS-optimized. - elastic_
gpu_ Sequence[Launchspecifications Template Elastic Gpu Specification Args] - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- elastic_
inference_ Launchaccelerator Template Elastic Inference Accelerator Args - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- enclave_
options LaunchTemplate Enclave Options Args - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- hibernation_
options LaunchTemplate Hibernation Options Args - The hibernation options for the instance. See Hibernation Options below for more details.
- iam_
instance_ Launchprofile Template Iam Instance Profile Args - 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 or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - instance_
initiated_ strshutdown_ behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - instance_
market_ Launchoptions Template Instance Market Options Args - The market (purchasing) option for the instance. See Market Options below for details.
- instance_
requirements LaunchTemplate Instance Requirements Args - 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[LaunchTemplate License Specification Args] - A list of license specifications to associate with. See License Specification below for more details.
- maintenance_
options LaunchTemplate Maintenance Options Args - The maintenance options for the instance. See Maintenance Options below for more details.
- metadata_
options LaunchTemplate Metadata Options Args - Customize the metadata options for the instance. See Metadata Options below for more details.
- monitoring
Launch
Template Monitoring Args - 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[LaunchTemplate Network Interface Args] - Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
- placement
Launch
Template Placement Args - The placement of the instance. See Placement below for more details.
- private_
dns_ Launchname_ options Template Private Dns Name Options Args - 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_ strid - The ID of the RAM disk.
- security_
group_ Sequence[str]names - 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[LaunchTemplate Tag Specification Args] - The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- 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_ boolversion - 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_ Sequence[str]group_ ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
- block
Device List<Property Map>Mappings - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- capacity
Reservation Property MapSpecification - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- cpu
Options Property Map - The CPU options for the instance. See CPU Options below for more details.
- credit
Specification Property Map - Customize the credit specification of the instance. See Credit Specification below for more details.
- default
Version Number - Default Version of the launch template.
- description String
- Description of the launch template.
- disable
Api BooleanStop - If true, enables EC2 Instance Stop Protection.
- disable
Api BooleanTermination - If
true
, enables EC2 Instance Termination Protection - ebs
Optimized String - If
true
, the launched EC2 instance will be EBS-optimized. - elastic
Gpu List<Property Map>Specifications - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- elastic
Inference Property MapAccelerator - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- enclave
Options Property Map - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- hibernation
Options Property Map - The hibernation options for the instance. See Hibernation Options below for more details.
- iam
Instance Property MapProfile - The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
- image
Id String - The AMI from which to launch the instance or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - instance
Initiated StringShutdown Behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - instance
Market Property MapOptions - The market (purchasing) option for the instance. See Market Options below for details.
- instance
Requirements Property Map - The attribute requirements for the type of instance. If present then
instance_type
cannot be present. - instance
Type String - The type of the instance. If present then
instance_requirements
cannot be present. - kernel
Id String - The kernel ID.
- key
Name String - The key name to use for the instance.
- license
Specifications List<Property Map> - A list of license specifications to associate with. See License Specification below for more details.
- maintenance
Options Property Map - The maintenance options for the instance. See Maintenance Options below for more details.
- metadata
Options 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.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - network
Interfaces 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.
- private
Dns Property MapName Options - 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 StringId - The ID of the RAM disk.
- security
Group List<String>Names - A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead. - List<Property Map>
- The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- 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. - update
Default BooleanVersion - Whether to update Default Version each update. Conflicts with
default_version
. - user
Data String - The base64-encoded user data to provide when launching the instance.
- vpc
Security List<String>Group Ids - 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
- Amazon Resource Name (ARN) of the launch template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version int - The latest version of the launch template.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Amazon Resource Name (ARN) of the launch template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version int - The latest version of the launch template.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the launch template.
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version Integer - The latest version of the launch template.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Amazon Resource Name (ARN) of the launch template.
- id string
- The provider-assigned unique ID for this managed resource.
- latest
Version number - The latest version of the launch template.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Amazon Resource Name (ARN) of the launch template.
- id str
- The provider-assigned unique ID for this managed resource.
- latest_
version int - The latest version of the launch template.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the launch template.
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version Number - The latest version of the launch template.
- 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.
- Arn string
- Amazon Resource Name (ARN) of the launch template.
- Block
Device List<LaunchMappings Template Block Device Mapping> - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- Capacity
Reservation LaunchSpecification Template Capacity Reservation Specification - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- Cpu
Options LaunchTemplate Cpu Options - The CPU options for the instance. See CPU Options below for more details.
- Credit
Specification LaunchTemplate Credit Specification - Customize the credit specification of the instance. See Credit Specification below for more details.
- Default
Version int - Default Version of the launch template.
- Description string
- Description of the launch template.
- Disable
Api boolStop - If true, enables EC2 Instance Stop Protection.
- Disable
Api boolTermination - If
true
, enables EC2 Instance Termination Protection - Ebs
Optimized string - If
true
, the launched EC2 instance will be EBS-optimized. - Elastic
Gpu List<LaunchSpecifications Template Elastic Gpu Specification> - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- Elastic
Inference LaunchAccelerator Template Elastic Inference Accelerator - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- Enclave
Options LaunchTemplate Enclave Options - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- Hibernation
Options LaunchTemplate Hibernation Options - The hibernation options for the instance. See Hibernation Options below for more details.
- Iam
Instance LaunchProfile Template Iam Instance Profile - The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
- Image
Id string - The AMI from which to launch the instance or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - Instance
Initiated stringShutdown Behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - Instance
Market LaunchOptions Template Instance Market Options - The market (purchasing) option for the instance. See Market Options below for details.
- Instance
Requirements LaunchTemplate Instance Requirements - The attribute requirements for the type of instance. If present then
instance_type
cannot be present. - Instance
Type string - The type of the instance. If present then
instance_requirements
cannot be present. - Kernel
Id string - The kernel ID.
- Key
Name string - The key name to use for the instance.
- Latest
Version int - The latest version of the launch template.
- License
Specifications List<LaunchTemplate License Specification> - A list of license specifications to associate with. See License Specification below for more details.
- Maintenance
Options LaunchTemplate Maintenance Options - The maintenance options for the instance. See Maintenance Options below for more details.
- Metadata
Options LaunchTemplate Metadata Options - Customize the metadata options for the instance. See Metadata Options below for more details.
- Monitoring
Launch
Template Monitoring - 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.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Network
Interfaces List<LaunchTemplate Network Interface> - Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
- Placement
Launch
Template Placement - The placement of the instance. See Placement below for more details.
- Private
Dns LaunchName Options Template Private Dns Name Options - 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 stringId - The ID of the RAM disk.
- Security
Group List<string>Names - A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead. - List<Launch
Template Tag Specification> - The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Update
Default boolVersion - Whether to update Default Version each update. Conflicts with
default_version
. - User
Data string - The base64-encoded user data to provide when launching the instance.
- Vpc
Security List<string>Group Ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
- Arn string
- Amazon Resource Name (ARN) of the launch template.
- Block
Device []LaunchMappings Template Block Device Mapping Args - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- Capacity
Reservation LaunchSpecification Template Capacity Reservation Specification Args - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- Cpu
Options LaunchTemplate Cpu Options Args - The CPU options for the instance. See CPU Options below for more details.
- Credit
Specification LaunchTemplate Credit Specification Args - Customize the credit specification of the instance. See Credit Specification below for more details.
- Default
Version int - Default Version of the launch template.
- Description string
- Description of the launch template.
- Disable
Api boolStop - If true, enables EC2 Instance Stop Protection.
- Disable
Api boolTermination - If
true
, enables EC2 Instance Termination Protection - Ebs
Optimized string - If
true
, the launched EC2 instance will be EBS-optimized. - Elastic
Gpu []LaunchSpecifications Template Elastic Gpu Specification Args - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- Elastic
Inference LaunchAccelerator Template Elastic Inference Accelerator Args - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- Enclave
Options LaunchTemplate Enclave Options Args - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- Hibernation
Options LaunchTemplate Hibernation Options Args - The hibernation options for the instance. See Hibernation Options below for more details.
- Iam
Instance LaunchProfile Template Iam Instance Profile Args - The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
- Image
Id string - The AMI from which to launch the instance or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - Instance
Initiated stringShutdown Behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - Instance
Market LaunchOptions Template Instance Market Options Args - The market (purchasing) option for the instance. See Market Options below for details.
- Instance
Requirements LaunchTemplate Instance Requirements Args - The attribute requirements for the type of instance. If present then
instance_type
cannot be present. - Instance
Type string - The type of the instance. If present then
instance_requirements
cannot be present. - Kernel
Id string - The kernel ID.
- Key
Name string - The key name to use for the instance.
- Latest
Version int - The latest version of the launch template.
- License
Specifications []LaunchTemplate License Specification Args - A list of license specifications to associate with. See License Specification below for more details.
- Maintenance
Options LaunchTemplate Maintenance Options Args - The maintenance options for the instance. See Maintenance Options below for more details.
- Metadata
Options LaunchTemplate Metadata Options Args - Customize the metadata options for the instance. See Metadata Options below for more details.
- Monitoring
Launch
Template Monitoring Args - 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.
- Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Network
Interfaces []LaunchTemplate Network Interface Args - Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
- Placement
Launch
Template Placement Args - The placement of the instance. See Placement below for more details.
- Private
Dns LaunchName Options Template Private Dns Name Options Args - 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 stringId - The ID of the RAM disk.
- Security
Group []stringNames - A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead. - []Launch
Template Tag Specification Args - The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Update
Default boolVersion - Whether to update Default Version each update. Conflicts with
default_version
. - User
Data string - The base64-encoded user data to provide when launching the instance.
- Vpc
Security []stringGroup Ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
- arn String
- Amazon Resource Name (ARN) of the launch template.
- block
Device List<LaunchMappings Template Block Device Mapping> - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- capacity
Reservation LaunchSpecification Template Capacity Reservation Specification - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- cpu
Options LaunchTemplate Cpu Options - The CPU options for the instance. See CPU Options below for more details.
- credit
Specification LaunchTemplate Credit Specification - Customize the credit specification of the instance. See Credit Specification below for more details.
- default
Version Integer - Default Version of the launch template.
- description String
- Description of the launch template.
- disable
Api BooleanStop - If true, enables EC2 Instance Stop Protection.
- disable
Api BooleanTermination - If
true
, enables EC2 Instance Termination Protection - ebs
Optimized String - If
true
, the launched EC2 instance will be EBS-optimized. - elastic
Gpu List<LaunchSpecifications Template Elastic Gpu Specification> - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- elastic
Inference LaunchAccelerator Template Elastic Inference Accelerator - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- enclave
Options LaunchTemplate Enclave Options - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- hibernation
Options LaunchTemplate Hibernation Options - The hibernation options for the instance. See Hibernation Options below for more details.
- iam
Instance LaunchProfile Template Iam Instance Profile - The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
- image
Id String - The AMI from which to launch the instance or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - instance
Initiated StringShutdown Behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - instance
Market LaunchOptions Template Instance Market Options - The market (purchasing) option for the instance. See Market Options below for details.
- instance
Requirements LaunchTemplate Instance Requirements - The attribute requirements for the type of instance. If present then
instance_type
cannot be present. - instance
Type String - The type of the instance. If present then
instance_requirements
cannot be present. - kernel
Id String - The kernel ID.
- key
Name String - The key name to use for the instance.
- latest
Version Integer - The latest version of the launch template.
- license
Specifications List<LaunchTemplate License Specification> - A list of license specifications to associate with. See License Specification below for more details.
- maintenance
Options LaunchTemplate Maintenance Options - The maintenance options for the instance. See Maintenance Options below for more details.
- metadata
Options LaunchTemplate Metadata Options - Customize the metadata options for the instance. See Metadata Options below for more details.
- monitoring
Launch
Template Monitoring - 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.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - network
Interfaces List<LaunchTemplate Network Interface> - Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
- placement
Launch
Template Placement - The placement of the instance. See Placement below for more details.
- private
Dns LaunchName Options Template Private Dns Name Options - 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 StringId - The ID of the RAM disk.
- security
Group List<String>Names - A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead. - List<Launch
Template Tag Specification> - The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - update
Default BooleanVersion - Whether to update Default Version each update. Conflicts with
default_version
. - user
Data String - The base64-encoded user data to provide when launching the instance.
- vpc
Security List<String>Group Ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
- arn string
- Amazon Resource Name (ARN) of the launch template.
- block
Device LaunchMappings Template Block Device Mapping[] - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- capacity
Reservation LaunchSpecification Template Capacity Reservation Specification - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- cpu
Options LaunchTemplate Cpu Options - The CPU options for the instance. See CPU Options below for more details.
- credit
Specification LaunchTemplate Credit Specification - Customize the credit specification of the instance. See Credit Specification below for more details.
- default
Version number - Default Version of the launch template.
- description string
- Description of the launch template.
- disable
Api booleanStop - If true, enables EC2 Instance Stop Protection.
- disable
Api booleanTermination - If
true
, enables EC2 Instance Termination Protection - ebs
Optimized string - If
true
, the launched EC2 instance will be EBS-optimized. - elastic
Gpu LaunchSpecifications Template Elastic Gpu Specification[] - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- elastic
Inference LaunchAccelerator Template Elastic Inference Accelerator - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- enclave
Options LaunchTemplate Enclave Options - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- hibernation
Options LaunchTemplate Hibernation Options - The hibernation options for the instance. See Hibernation Options below for more details.
- iam
Instance LaunchProfile Template Iam Instance Profile - The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
- image
Id string - The AMI from which to launch the instance or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - instance
Initiated stringShutdown Behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - instance
Market LaunchOptions Template Instance Market Options - The market (purchasing) option for the instance. See Market Options below for details.
- instance
Requirements LaunchTemplate Instance Requirements - The attribute requirements for the type of instance. If present then
instance_type
cannot be present. - instance
Type string - The type of the instance. If present then
instance_requirements
cannot be present. - kernel
Id string - The kernel ID.
- key
Name string - The key name to use for the instance.
- latest
Version number - The latest version of the launch template.
- license
Specifications LaunchTemplate License Specification[] - A list of license specifications to associate with. See License Specification below for more details.
- maintenance
Options LaunchTemplate Maintenance Options - The maintenance options for the instance. See Maintenance Options below for more details.
- metadata
Options LaunchTemplate Metadata Options - Customize the metadata options for the instance. See Metadata Options below for more details.
- monitoring
Launch
Template Monitoring - 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.
- name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - network
Interfaces LaunchTemplate Network Interface[] - Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
- placement
Launch
Template Placement - The placement of the instance. See Placement below for more details.
- private
Dns LaunchName Options Template Private Dns Name Options - 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 stringId - The ID of the RAM disk.
- security
Group string[]Names - A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead. - Launch
Template Tag Specification[] - The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- {[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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - update
Default booleanVersion - Whether to update Default Version each update. Conflicts with
default_version
. - user
Data string - The base64-encoded user data to provide when launching the instance.
- vpc
Security string[]Group Ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
- arn str
- Amazon Resource Name (ARN) of the launch template.
- block_
device_ Sequence[Launchmappings Template Block Device Mapping Args] - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- capacity_
reservation_ Launchspecification Template Capacity Reservation Specification Args - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- cpu_
options LaunchTemplate Cpu Options Args - The CPU options for the instance. See CPU Options below for more details.
- credit_
specification LaunchTemplate Credit Specification Args - 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_ boolstop - If true, enables EC2 Instance Stop Protection.
- disable_
api_ booltermination - If
true
, enables EC2 Instance Termination Protection - ebs_
optimized str - If
true
, the launched EC2 instance will be EBS-optimized. - elastic_
gpu_ Sequence[Launchspecifications Template Elastic Gpu Specification Args] - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- elastic_
inference_ Launchaccelerator Template Elastic Inference Accelerator Args - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- enclave_
options LaunchTemplate Enclave Options Args - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- hibernation_
options LaunchTemplate Hibernation Options Args - The hibernation options for the instance. See Hibernation Options below for more details.
- iam_
instance_ Launchprofile Template Iam Instance Profile Args - 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 or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - instance_
initiated_ strshutdown_ behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - instance_
market_ Launchoptions Template Instance Market Options Args - The market (purchasing) option for the instance. See Market Options below for details.
- instance_
requirements LaunchTemplate Instance Requirements Args - 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[LaunchTemplate License Specification Args] - A list of license specifications to associate with. See License Specification below for more details.
- maintenance_
options LaunchTemplate Maintenance Options Args - The maintenance options for the instance. See Maintenance Options below for more details.
- metadata_
options LaunchTemplate Metadata Options Args - Customize the metadata options for the instance. See Metadata Options below for more details.
- monitoring
Launch
Template Monitoring Args - 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[LaunchTemplate Network Interface Args] - Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
- placement
Launch
Template Placement Args - The placement of the instance. See Placement below for more details.
- private_
dns_ Launchname_ options Template Private Dns Name Options Args - 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_ strid - The ID of the RAM disk.
- security_
group_ Sequence[str]names - 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[LaunchTemplate Tag Specification Args] - The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - update_
default_ boolversion - 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_ Sequence[str]group_ ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
- arn String
- Amazon Resource Name (ARN) of the launch template.
- block
Device List<Property Map>Mappings - Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
- capacity
Reservation Property MapSpecification - Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
- cpu
Options Property Map - The CPU options for the instance. See CPU Options below for more details.
- credit
Specification Property Map - Customize the credit specification of the instance. See Credit Specification below for more details.
- default
Version Number - Default Version of the launch template.
- description String
- Description of the launch template.
- disable
Api BooleanStop - If true, enables EC2 Instance Stop Protection.
- disable
Api BooleanTermination - If
true
, enables EC2 Instance Termination Protection - ebs
Optimized String - If
true
, the launched EC2 instance will be EBS-optimized. - elastic
Gpu List<Property Map>Specifications - The elastic GPU to attach to the instance. See Elastic GPU below for more details.
- elastic
Inference Property MapAccelerator - Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
- enclave
Options Property Map - Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
- hibernation
Options Property Map - The hibernation options for the instance. See Hibernation Options below for more details.
- iam
Instance Property MapProfile - The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
- image
Id String - The AMI from which to launch the instance or use a Systems Manager parameter convention e.g.
resolve:ssm:parameter-name
. See docs for more details. - instance
Initiated StringShutdown Behavior - Shutdown behavior for the instance. Can be
stop
orterminate
. (Default:stop
). - instance
Market Property MapOptions - The market (purchasing) option for the instance. See Market Options below for details.
- instance
Requirements Property Map - The attribute requirements for the type of instance. If present then
instance_type
cannot be present. - instance
Type String - The type of the instance. If present then
instance_requirements
cannot be present. - kernel
Id String - The kernel ID.
- key
Name String - The key name to use for the instance.
- latest
Version Number - The latest version of the launch template.
- license
Specifications List<Property Map> - A list of license specifications to associate with. See License Specification below for more details.
- maintenance
Options Property Map - The maintenance options for the instance. See Maintenance Options below for more details.
- metadata
Options 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.
- name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - network
Interfaces 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.
- private
Dns Property MapName Options - 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 StringId - The ID of the RAM disk.
- security
Group List<String>Names - A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids
instead. - List<Property Map>
- The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
- 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - update
Default BooleanVersion - Whether to update Default Version each update. Conflicts with
default_version
. - user
Data String - The base64-encoded user data to provide when launching the instance.
- vpc
Security List<String>Group Ids - A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groups
Supporting Types
LaunchTemplateBlockDeviceMapping, LaunchTemplateBlockDeviceMappingArgs
- Device
Name string - The name of the device to mount.
- Ebs
Launch
Template Block Device Mapping Ebs - Configure EBS volume properties.
- No
Device string - Suppresses the specified device included in the AMI's block device mapping.
- Virtual
Name string - The Instance Store Device
Name
(e.g.,
"ephemeral0"
).
- Device
Name string - The name of the device to mount.
- Ebs
Launch
Template Block Device Mapping Ebs - Configure EBS volume properties.
- No
Device string - Suppresses the specified device included in the AMI's block device mapping.
- Virtual
Name string - The Instance Store Device
Name
(e.g.,
"ephemeral0"
).
- device
Name String - The name of the device to mount.
- ebs
Launch
Template Block Device Mapping Ebs - Configure EBS volume properties.
- no
Device String - Suppresses the specified device included in the AMI's block device mapping.
- virtual
Name String - The Instance Store Device
Name
(e.g.,
"ephemeral0"
).
- device
Name string - The name of the device to mount.
- ebs
Launch
Template Block Device Mapping Ebs - Configure EBS volume properties.
- no
Device string - Suppresses the specified device included in the AMI's block device mapping.
- virtual
Name string - The Instance Store Device
Name
(e.g.,
"ephemeral0"
).
- device_
name str - The name of the device to mount.
- ebs
Launch
Template Block Device Mapping Ebs - 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"
).
- device
Name String - The name of the device to mount.
- ebs Property Map
- Configure EBS volume properties.
- no
Device String - Suppresses the specified device included in the AMI's block device mapping.
- virtual
Name String - The Instance Store Device
Name
(e.g.,
"ephemeral0"
).
LaunchTemplateBlockDeviceMappingEbs, LaunchTemplateBlockDeviceMappingEbsArgs
- Delete
On stringTermination - Whether the volume should be destroyed on instance termination. See Preserving Amazon EBS Volumes on Instance Termination for more information.
- Encrypted string
- Enables EBS encryption on the volume.
Cannot be used with
snapshot_id
. - Iops int
- The amount of provisioned IOPS.
This must be set with a
volume_type
of"io1/io2/gp3"
. - Kms
Key stringId - 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 totrue
when this is set. - Snapshot
Id 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. - Volume
Size int - The size of the volume in gigabytes.
- Volume
Type string - The volume type.
Can be one of
standard
,gp2
,gp3
,io1
,io2
,sc1
orst1
.
- Delete
On stringTermination - Whether the volume should be destroyed on instance termination. See Preserving Amazon EBS Volumes on Instance Termination for more information.
- Encrypted string
- Enables EBS encryption on the volume.
Cannot be used with
snapshot_id
. - Iops int
- The amount of provisioned IOPS.
This must be set with a
volume_type
of"io1/io2/gp3"
. - Kms
Key stringId - 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 totrue
when this is set. - Snapshot
Id 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. - Volume
Size int - The size of the volume in gigabytes.
- Volume
Type string - The volume type.
Can be one of
standard
,gp2
,gp3
,io1
,io2
,sc1
orst1
.
- delete
On StringTermination - Whether the volume should be destroyed on instance termination. See Preserving Amazon EBS Volumes on Instance Termination for more information.
- encrypted String
- Enables EBS encryption on the volume.
Cannot be used with
snapshot_id
. - iops Integer
- The amount of provisioned IOPS.
This must be set with a
volume_type
of"io1/io2/gp3"
. - kms
Key StringId - 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 totrue
when this is set. - snapshot
Id 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. - volume
Size Integer - The size of the volume in gigabytes.
- volume
Type String - The volume type.
Can be one of
standard
,gp2
,gp3
,io1
,io2
,sc1
orst1
.
- delete
On stringTermination - Whether the volume should be destroyed on instance termination. See Preserving Amazon EBS Volumes on Instance Termination for more information.
- encrypted string
- Enables EBS encryption on the volume.
Cannot be used with
snapshot_id
. - iops number
- The amount of provisioned IOPS.
This must be set with a
volume_type
of"io1/io2/gp3"
. - kms
Key stringId - 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 totrue
when this is set. - snapshot
Id 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. - volume
Size number - The size of the volume in gigabytes.
- volume
Type string - The volume type.
Can be one of
standard
,gp2
,gp3
,io1
,io2
,sc1
orst1
.
- delete_
on_ strtermination - Whether the volume should be destroyed on instance termination. See Preserving Amazon EBS Volumes on Instance Termination for more information.
- encrypted str
- Enables EBS encryption on the volume.
Cannot be used with
snapshot_id
. - iops int
- The amount of provisioned IOPS.
This must be set with a
volume_type
of"io1/io2/gp3"
. - kms_
key_ strid - 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 totrue
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 one of
standard
,gp2
,gp3
,io1
,io2
,sc1
orst1
.
- delete
On StringTermination - Whether the volume should be destroyed on instance termination. See Preserving Amazon EBS Volumes on Instance Termination for more information.
- encrypted String
- Enables EBS encryption on the volume.
Cannot be used with
snapshot_id
. - iops Number
- The amount of provisioned IOPS.
This must be set with a
volume_type
of"io1/io2/gp3"
. - kms
Key StringId - 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 totrue
when this is set. - snapshot
Id 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. - volume
Size Number - The size of the volume in gigabytes.
- volume
Type String - The volume type.
Can be one of
standard
,gp2
,gp3
,io1
,io2
,sc1
orst1
.
LaunchTemplateCapacityReservationSpecification, LaunchTemplateCapacityReservationSpecificationArgs
- Capacity
Reservation stringPreference - Indicates the instance's Capacity Reservation preferences. Can be
open
ornone
. (Defaultnone
). - Capacity
Reservation LaunchTarget Template Capacity Reservation Specification Capacity Reservation Target - Used to target a specific Capacity Reservation:
- Capacity
Reservation stringPreference - Indicates the instance's Capacity Reservation preferences. Can be
open
ornone
. (Defaultnone
). - Capacity
Reservation LaunchTarget Template Capacity Reservation Specification Capacity Reservation Target - Used to target a specific Capacity Reservation:
- capacity
Reservation StringPreference - Indicates the instance's Capacity Reservation preferences. Can be
open
ornone
. (Defaultnone
). - capacity
Reservation LaunchTarget Template Capacity Reservation Specification Capacity Reservation Target - Used to target a specific Capacity Reservation:
- capacity
Reservation stringPreference - Indicates the instance's Capacity Reservation preferences. Can be
open
ornone
. (Defaultnone
). - capacity
Reservation LaunchTarget Template Capacity Reservation Specification Capacity Reservation Target - Used to target a specific Capacity Reservation:
- capacity_
reservation_ strpreference - Indicates the instance's Capacity Reservation preferences. Can be
open
ornone
. (Defaultnone
). - capacity_
reservation_ Launchtarget Template Capacity Reservation Specification Capacity Reservation Target - Used to target a specific Capacity Reservation:
- capacity
Reservation StringPreference - Indicates the instance's Capacity Reservation preferences. Can be
open
ornone
. (Defaultnone
). - capacity
Reservation Property MapTarget - Used to target a specific Capacity Reservation:
LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget, LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgs
- Capacity
Reservation stringId - The ID of the Capacity Reservation in which to run the instance.
- Capacity
Reservation stringResource Group Arn - The ARN of the Capacity Reservation resource group in which to run the instance.
- Capacity
Reservation stringId - The ID of the Capacity Reservation in which to run the instance.
- Capacity
Reservation stringResource Group Arn - The ARN of the Capacity Reservation resource group in which to run the instance.
- capacity
Reservation StringId - The ID of the Capacity Reservation in which to run the instance.
- capacity
Reservation StringResource Group Arn - The ARN of the Capacity Reservation resource group in which to run the instance.
- capacity
Reservation stringId - The ID of the Capacity Reservation in which to run the instance.
- capacity
Reservation stringResource Group Arn - The ARN of the Capacity Reservation resource group in which to run the instance.
- capacity_
reservation_ strid - The ID of the Capacity Reservation in which to run the instance.
- capacity_
reservation_ strresource_ group_ arn - The ARN of the Capacity Reservation resource group in which to run the instance.
- capacity
Reservation StringId - The ID of the Capacity Reservation in which to run the instance.
- capacity
Reservation StringResource Group Arn - The ARN of the Capacity Reservation resource group in which to run the instance.
LaunchTemplateCpuOptions, LaunchTemplateCpuOptionsArgs
- Amd
Sev stringSnp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are
enabled
anddisabled
. - Core
Count int - The number of CPU cores for the instance.
- Threads
Per intCore 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.
Both number of CPU cores and threads per core must be specified. Valid number of CPU cores and threads per core for the instance type can be found in the CPU Options Documentation
- Amd
Sev stringSnp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are
enabled
anddisabled
. - Core
Count int - The number of CPU cores for the instance.
- Threads
Per intCore 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.
Both number of CPU cores and threads per core must be specified. Valid number of CPU cores and threads per core for the instance type can be found in the CPU Options Documentation
- amd
Sev StringSnp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are
enabled
anddisabled
. - core
Count Integer - The number of CPU cores for the instance.
- threads
Per IntegerCore 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.
Both number of CPU cores and threads per core must be specified. Valid number of CPU cores and threads per core for the instance type can be found in the CPU Options Documentation
- amd
Sev stringSnp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are
enabled
anddisabled
. - core
Count number - The number of CPU cores for the instance.
- threads
Per numberCore 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.
Both number of CPU cores and threads per core must be specified. Valid number of CPU cores and threads per core for the instance type can be found in the CPU Options Documentation
- amd_
sev_ strsnp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are
enabled
anddisabled
. - core_
count int - The number of CPU cores for the instance.
- threads_
per_ intcore 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.
Both number of CPU cores and threads per core must be specified. Valid number of CPU cores and threads per core for the instance type can be found in the CPU Options Documentation
- amd
Sev StringSnp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are
enabled
anddisabled
. - core
Count Number - The number of CPU cores for the instance.
- threads
Per NumberCore 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.
Both number of CPU cores and threads per core must be specified. Valid number of CPU cores and threads per core for the instance type can be found in the CPU Options Documentation
LaunchTemplateCreditSpecification, LaunchTemplateCreditSpecificationArgs
- Cpu
Credits string - The credit option for CPU usage.
Can be
standard
orunlimited
. T3 instances are launched asunlimited
by default. T2 instances are launched asstandard
by default.
- Cpu
Credits string - The credit option for CPU usage.
Can be
standard
orunlimited
. T3 instances are launched asunlimited
by default. T2 instances are launched asstandard
by default.
- cpu
Credits String - The credit option for CPU usage.
Can be
standard
orunlimited
. T3 instances are launched asunlimited
by default. T2 instances are launched asstandard
by default.
- cpu
Credits string - The credit option for CPU usage.
Can be
standard
orunlimited
. T3 instances are launched asunlimited
by default. T2 instances are launched asstandard
by default.
- cpu_
credits str - The credit option for CPU usage.
Can be
standard
orunlimited
. T3 instances are launched asunlimited
by default. T2 instances are launched asstandard
by default.
- cpu
Credits String - The credit option for CPU usage.
Can be
standard
orunlimited
. T3 instances are launched asunlimited
by default. T2 instances are launched asstandard
by default.
LaunchTemplateElasticGpuSpecification, LaunchTemplateElasticGpuSpecificationArgs
- Type string
- The Elastic GPU Type
- Type string
- The Elastic GPU Type
- type String
- The Elastic GPU Type
- type string
- The Elastic GPU Type
- type str
- The Elastic GPU Type
- type String
- The Elastic GPU Type
LaunchTemplateElasticInferenceAccelerator, LaunchTemplateElasticInferenceAcceleratorArgs
- 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, LaunchTemplateEnclaveOptionsArgs
- Enabled bool
If set to
true
, Nitro Enclaves will be enabled on the instance.For more information, see the documentation on Nitro Enclaves.
- Enabled bool
If set to
true
, Nitro Enclaves will be enabled on the instance.For more information, see the documentation on Nitro Enclaves.
- enabled Boolean
If set to
true
, Nitro Enclaves will be enabled on the instance.For more information, see the documentation on Nitro Enclaves.
- enabled boolean
If set to
true
, Nitro Enclaves will be enabled on the instance.For more information, see the documentation on Nitro Enclaves.
- enabled bool
If set to
true
, Nitro Enclaves will be enabled on the instance.For more information, see the documentation on Nitro Enclaves.
- enabled Boolean
If set to
true
, Nitro Enclaves will be enabled on the instance.For more information, see the documentation on Nitro Enclaves.
LaunchTemplateHibernationOptions, LaunchTemplateHibernationOptionsArgs
- 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, LaunchTemplateIamInstanceProfileArgs
LaunchTemplateInstanceMarketOptions, LaunchTemplateInstanceMarketOptionsArgs
- Market
Type string - The market type. Can be
spot
. - Spot
Options LaunchTemplate Instance Market Options Spot Options - The options for Spot Instance
- Market
Type string - The market type. Can be
spot
. - Spot
Options LaunchTemplate Instance Market Options Spot Options - The options for Spot Instance
- market
Type String - The market type. Can be
spot
. - spot
Options LaunchTemplate Instance Market Options Spot Options - The options for Spot Instance
- market
Type string - The market type. Can be
spot
. - spot
Options LaunchTemplate Instance Market Options Spot Options - The options for Spot Instance
- market_
type str - The market type. Can be
spot
. - spot_
options LaunchTemplate Instance Market Options Spot Options - The options for Spot Instance
- market
Type String - The market type. Can be
spot
. - spot
Options Property Map - The options for Spot Instance
LaunchTemplateInstanceMarketOptionsSpotOptions, LaunchTemplateInstanceMarketOptionsSpotOptionsArgs
- Block
Duration intMinutes - The required duration in minutes. This value must be a multiple of 60.
- Instance
Interruption stringBehavior - The behavior when a Spot Instance is interrupted. Can be
hibernate
,stop
, orterminate
. (Default:terminate
). - Max
Price string - The maximum hourly price you're willing to pay for the Spot Instances.
- Spot
Instance stringType - The Spot Instance request type. Can be
one-time
, orpersistent
. - Valid
Until string - The end date of the request.
- Block
Duration intMinutes - The required duration in minutes. This value must be a multiple of 60.
- Instance
Interruption stringBehavior - The behavior when a Spot Instance is interrupted. Can be
hibernate
,stop
, orterminate
. (Default:terminate
). - Max
Price string - The maximum hourly price you're willing to pay for the Spot Instances.
- Spot
Instance stringType - The Spot Instance request type. Can be
one-time
, orpersistent
. - Valid
Until string - The end date of the request.
- block
Duration IntegerMinutes - The required duration in minutes. This value must be a multiple of 60.
- instance
Interruption StringBehavior - The behavior when a Spot Instance is interrupted. Can be
hibernate
,stop
, orterminate
. (Default:terminate
). - max
Price String - The maximum hourly price you're willing to pay for the Spot Instances.
- spot
Instance StringType - The Spot Instance request type. Can be
one-time
, orpersistent
. - valid
Until String - The end date of the request.
- block
Duration numberMinutes - The required duration in minutes. This value must be a multiple of 60.
- instance
Interruption stringBehavior - The behavior when a Spot Instance is interrupted. Can be
hibernate
,stop
, orterminate
. (Default:terminate
). - max
Price string - The maximum hourly price you're willing to pay for the Spot Instances.
- spot
Instance stringType - The Spot Instance request type. Can be
one-time
, orpersistent
. - valid
Until string - The end date of the request.
- block_
duration_ intminutes - The required duration in minutes. This value must be a multiple of 60.
- instance_
interruption_ strbehavior - The behavior when a Spot Instance is interrupted. Can be
hibernate
,stop
, orterminate
. (Default:terminate
). - max_
price str - The maximum hourly price you're willing to pay for the Spot Instances.
- spot_
instance_ strtype - The Spot Instance request type. Can be
one-time
, orpersistent
. - valid_
until str - The end date of the request.
- block
Duration NumberMinutes - The required duration in minutes. This value must be a multiple of 60.
- instance
Interruption StringBehavior - The behavior when a Spot Instance is interrupted. Can be
hibernate
,stop
, orterminate
. (Default:terminate
). - max
Price String - The maximum hourly price you're willing to pay for the Spot Instances.
- spot
Instance StringType - The Spot Instance request type. Can be
one-time
, orpersistent
. - valid
Until String - The end date of the request.
LaunchTemplateInstanceRequirements, LaunchTemplateInstanceRequirementsArgs
- Memory
Mib LaunchTemplate Instance Requirements Memory Mib - Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.
- Vcpu
Count LaunchTemplate Instance Requirements Vcpu Count - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- Accelerator
Count LaunchTemplate Instance Requirements Accelerator Count - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.
- Accelerator
Manufacturers List<string> - List of accelerator manufacturer names. Default is any manufacturer.
Valid names: * amazon-web-services * amd * nvidia * xilinx
- Accelerator
Names List<string> - List of accelerator names. Default is any acclerator.
Valid names: * a100 - NVIDIA A100 GPUs * v100 - NVIDIA V100 GPUs * k80 - NVIDIA K80 GPUs * t4 - NVIDIA T4 GPUs * m60 - NVIDIA M60 GPUs * radeon-pro-v520 - AMD Radeon Pro V520 GPUs * vu9p - Xilinx VU9P FPGAs
- Accelerator
Total LaunchMemory Mib Template Instance Requirements Accelerator Total Memory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- Accelerator
Types List<string> - List of accelerator types. Default is any accelerator type.
Valid types: * fpga * gpu * inference
- Allowed
Instance List<string>Types List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are allowing 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 all instance types.NOTE: If you specify
allowed_instance_types
, you can't specifyexcluded_instance_types
.- Bare
Metal string - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - Baseline
Ebs LaunchBandwidth Mbps Template Instance Requirements Baseline Ebs Bandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- Burstable
Performance string - Indicate whether burstable performance instance types should be
included
,excluded
, orrequired
. Default isexcluded
. - Cpu
Manufacturers List<string> List of CPU manufacturer names. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Valid names: * amazon-web-services * amd * intel
- Excluded
Instance List<string>Types List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, 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.NOTE: If you specify
excluded_instance_types
, you can't specifyallowed_instance_types
.- Instance
Generations List<string> - List of instance generation names. Default is any generation.
Valid names: * current - Recommended for best performance. * previous - For existing applications optimized for older instance types.
- Local
Storage string - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - Local
Storage List<string>Types - List of local storage type names. Default any storage type.
Value names: * hdd - hard disk drive * ssd - solid state drive
- Max
Spot intPrice As Percentage Of Optimal On Demand Price - 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. Conflicts with
spot_max_price_percentage_over_lowest_price
- Memory
Gib LaunchPer Vcpu Template Instance Requirements Memory Gib Per Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- Network
Bandwidth LaunchGbps Template Instance Requirements Network Bandwidth Gbps - Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum.
- Network
Interface LaunchCount Template Instance Requirements Network Interface Count - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- On
Demand intMax Price Percentage Over Lowest Price 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.
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- Require
Hibernate boolSupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - Spot
Max intPrice Percentage Over Lowest Price 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. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- Total
Local LaunchStorage Gb Template Instance Requirements Total Local Storage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
- Memory
Mib LaunchTemplate Instance Requirements Memory Mib - Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.
- Vcpu
Count LaunchTemplate Instance Requirements Vcpu Count - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- Accelerator
Count LaunchTemplate Instance Requirements Accelerator Count - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.
- Accelerator
Manufacturers []string - List of accelerator manufacturer names. Default is any manufacturer.
Valid names: * amazon-web-services * amd * nvidia * xilinx
- Accelerator
Names []string - List of accelerator names. Default is any acclerator.
Valid names: * a100 - NVIDIA A100 GPUs * v100 - NVIDIA V100 GPUs * k80 - NVIDIA K80 GPUs * t4 - NVIDIA T4 GPUs * m60 - NVIDIA M60 GPUs * radeon-pro-v520 - AMD Radeon Pro V520 GPUs * vu9p - Xilinx VU9P FPGAs
- Accelerator
Total LaunchMemory Mib Template Instance Requirements Accelerator Total Memory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- Accelerator
Types []string - List of accelerator types. Default is any accelerator type.
Valid types: * fpga * gpu * inference
- Allowed
Instance []stringTypes List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are allowing 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 all instance types.NOTE: If you specify
allowed_instance_types
, you can't specifyexcluded_instance_types
.- Bare
Metal string - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - Baseline
Ebs LaunchBandwidth Mbps Template Instance Requirements Baseline Ebs Bandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- Burstable
Performance string - Indicate whether burstable performance instance types should be
included
,excluded
, orrequired
. Default isexcluded
. - Cpu
Manufacturers []string List of CPU manufacturer names. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Valid names: * amazon-web-services * amd * intel
- Excluded
Instance []stringTypes List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, 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.NOTE: If you specify
excluded_instance_types
, you can't specifyallowed_instance_types
.- Instance
Generations []string - List of instance generation names. Default is any generation.
Valid names: * current - Recommended for best performance. * previous - For existing applications optimized for older instance types.
- Local
Storage string - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - Local
Storage []stringTypes - List of local storage type names. Default any storage type.
Value names: * hdd - hard disk drive * ssd - solid state drive
- Max
Spot intPrice As Percentage Of Optimal On Demand Price - 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. Conflicts with
spot_max_price_percentage_over_lowest_price
- Memory
Gib LaunchPer Vcpu Template Instance Requirements Memory Gib Per Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- Network
Bandwidth LaunchGbps Template Instance Requirements Network Bandwidth Gbps - Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum.
- Network
Interface LaunchCount Template Instance Requirements Network Interface Count - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- On
Demand intMax Price Percentage Over Lowest Price 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.
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- Require
Hibernate boolSupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - Spot
Max intPrice Percentage Over Lowest Price 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. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- Total
Local LaunchStorage Gb Template Instance Requirements Total Local Storage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
- memory
Mib LaunchTemplate Instance Requirements Memory Mib - Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.
- vcpu
Count LaunchTemplate Instance Requirements Vcpu Count - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- accelerator
Count LaunchTemplate Instance Requirements Accelerator Count - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.
- accelerator
Manufacturers List<String> - List of accelerator manufacturer names. Default is any manufacturer.
Valid names: * amazon-web-services * amd * nvidia * xilinx
- accelerator
Names List<String> - List of accelerator names. Default is any acclerator.
Valid names: * a100 - NVIDIA A100 GPUs * v100 - NVIDIA V100 GPUs * k80 - NVIDIA K80 GPUs * t4 - NVIDIA T4 GPUs * m60 - NVIDIA M60 GPUs * radeon-pro-v520 - AMD Radeon Pro V520 GPUs * vu9p - Xilinx VU9P FPGAs
- accelerator
Total LaunchMemory Mib Template Instance Requirements Accelerator Total Memory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- accelerator
Types List<String> - List of accelerator types. Default is any accelerator type.
Valid types: * fpga * gpu * inference
- allowed
Instance List<String>Types List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are allowing 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 all instance types.NOTE: If you specify
allowed_instance_types
, you can't specifyexcluded_instance_types
.- bare
Metal String - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - baseline
Ebs LaunchBandwidth Mbps Template Instance Requirements Baseline Ebs Bandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- burstable
Performance String - Indicate whether burstable performance instance types should be
included
,excluded
, orrequired
. Default isexcluded
. - cpu
Manufacturers List<String> List of CPU manufacturer names. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Valid names: * amazon-web-services * amd * intel
- excluded
Instance List<String>Types List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, 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.NOTE: If you specify
excluded_instance_types
, you can't specifyallowed_instance_types
.- instance
Generations List<String> - List of instance generation names. Default is any generation.
Valid names: * current - Recommended for best performance. * previous - For existing applications optimized for older instance types.
- local
Storage String - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - local
Storage List<String>Types - List of local storage type names. Default any storage type.
Value names: * hdd - hard disk drive * ssd - solid state drive
- max
Spot IntegerPrice As Percentage Of Optimal On Demand Price - 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. Conflicts with
spot_max_price_percentage_over_lowest_price
- memory
Gib LaunchPer Vcpu Template Instance Requirements Memory Gib Per Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- network
Bandwidth LaunchGbps Template Instance Requirements Network Bandwidth Gbps - Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum.
- network
Interface LaunchCount Template Instance Requirements Network Interface Count - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- on
Demand IntegerMax Price Percentage Over Lowest Price 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.
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- require
Hibernate BooleanSupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - spot
Max IntegerPrice Percentage Over Lowest Price 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. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- total
Local LaunchStorage Gb Template Instance Requirements Total Local Storage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
- memory
Mib LaunchTemplate Instance Requirements Memory Mib - Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.
- vcpu
Count LaunchTemplate Instance Requirements Vcpu Count - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- accelerator
Count LaunchTemplate Instance Requirements Accelerator Count - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.
- accelerator
Manufacturers string[] - List of accelerator manufacturer names. Default is any manufacturer.
Valid names: * amazon-web-services * amd * nvidia * xilinx
- accelerator
Names string[] - List of accelerator names. Default is any acclerator.
Valid names: * a100 - NVIDIA A100 GPUs * v100 - NVIDIA V100 GPUs * k80 - NVIDIA K80 GPUs * t4 - NVIDIA T4 GPUs * m60 - NVIDIA M60 GPUs * radeon-pro-v520 - AMD Radeon Pro V520 GPUs * vu9p - Xilinx VU9P FPGAs
- accelerator
Total LaunchMemory Mib Template Instance Requirements Accelerator Total Memory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- accelerator
Types string[] - List of accelerator types. Default is any accelerator type.
Valid types: * fpga * gpu * inference
- allowed
Instance string[]Types List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are allowing 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 all instance types.NOTE: If you specify
allowed_instance_types
, you can't specifyexcluded_instance_types
.- bare
Metal string - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - baseline
Ebs LaunchBandwidth Mbps Template Instance Requirements Baseline Ebs Bandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- burstable
Performance string - Indicate whether burstable performance instance types should be
included
,excluded
, orrequired
. Default isexcluded
. - cpu
Manufacturers string[] List of CPU manufacturer names. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Valid names: * amazon-web-services * amd * intel
- excluded
Instance string[]Types List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, 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.NOTE: If you specify
excluded_instance_types
, you can't specifyallowed_instance_types
.- instance
Generations string[] - List of instance generation names. Default is any generation.
Valid names: * current - Recommended for best performance. * previous - For existing applications optimized for older instance types.
- local
Storage string - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - local
Storage string[]Types - List of local storage type names. Default any storage type.
Value names: * hdd - hard disk drive * ssd - solid state drive
- max
Spot numberPrice As Percentage Of Optimal On Demand Price - 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. Conflicts with
spot_max_price_percentage_over_lowest_price
- memory
Gib LaunchPer Vcpu Template Instance Requirements Memory Gib Per Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- network
Bandwidth LaunchGbps Template Instance Requirements Network Bandwidth Gbps - Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum.
- network
Interface LaunchCount Template Instance Requirements Network Interface Count - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- on
Demand numberMax Price Percentage Over Lowest Price 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.
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- require
Hibernate booleanSupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - spot
Max numberPrice Percentage Over Lowest Price 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. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- total
Local LaunchStorage Gb Template Instance Requirements Total Local Storage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
- memory_
mib LaunchTemplate Instance Requirements Memory Mib - Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.
- vcpu_
count LaunchTemplate Instance Requirements Vcpu Count - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- accelerator_
count LaunchTemplate Instance Requirements Accelerator Count - 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.
Valid names: * amazon-web-services * amd * nvidia * xilinx
- accelerator_
names Sequence[str] - List of accelerator names. Default is any acclerator.
Valid names: * a100 - NVIDIA A100 GPUs * v100 - NVIDIA V100 GPUs * k80 - NVIDIA K80 GPUs * t4 - NVIDIA T4 GPUs * m60 - NVIDIA M60 GPUs * radeon-pro-v520 - AMD Radeon Pro V520 GPUs * vu9p - Xilinx VU9P FPGAs
- accelerator_
total_ Launchmemory_ mib Template Instance Requirements Accelerator Total Memory Mib - 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.
Valid types: * fpga * gpu * inference
- allowed_
instance_ Sequence[str]types List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are allowing 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 all instance types.NOTE: If you specify
allowed_instance_types
, you can't specifyexcluded_instance_types
.- bare_
metal str - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - baseline_
ebs_ Launchbandwidth_ mbps Template Instance Requirements Baseline Ebs Bandwidth Mbps - 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
, orrequired
. Default isexcluded
. - cpu_
manufacturers Sequence[str] List of CPU manufacturer names. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Valid names: * amazon-web-services * amd * intel
- excluded_
instance_ Sequence[str]types List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, 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.NOTE: If you specify
excluded_instance_types
, you can't specifyallowed_instance_types
.- instance_
generations Sequence[str] - List of instance generation names. Default is any generation.
Valid names: * current - Recommended for best performance. * previous - For existing applications optimized for older instance types.
- local_
storage str - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - local_
storage_ Sequence[str]types - List of local storage type names. Default any storage type.
Value names: * hdd - hard disk drive * ssd - solid state drive
- max_
spot_ intprice_ as_ percentage_ of_ optimal_ on_ demand_ price - 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. Conflicts with
spot_max_price_percentage_over_lowest_price
- memory_
gib_ Launchper_ vcpu Template Instance Requirements Memory Gib Per Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- network_
bandwidth_ Launchgbps Template Instance Requirements Network Bandwidth Gbps - Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum.
- network_
interface_ Launchcount Template Instance Requirements Network Interface Count - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- on_
demand_ intmax_ price_ percentage_ over_ lowest_ price 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.
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- require_
hibernate_ boolsupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - spot_
max_ intprice_ percentage_ over_ lowest_ price 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. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- total_
local_ Launchstorage_ gb Template Instance Requirements Total Local Storage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
- memory
Mib Property Map - Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.
- vcpu
Count Property Map - Block describing the minimum and maximum number of vCPUs. Default is no maximum.
- accelerator
Count Property Map - Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.
- accelerator
Manufacturers List<String> - List of accelerator manufacturer names. Default is any manufacturer.
Valid names: * amazon-web-services * amd * nvidia * xilinx
- accelerator
Names List<String> - List of accelerator names. Default is any acclerator.
Valid names: * a100 - NVIDIA A100 GPUs * v100 - NVIDIA V100 GPUs * k80 - NVIDIA K80 GPUs * t4 - NVIDIA T4 GPUs * m60 - NVIDIA M60 GPUs * radeon-pro-v520 - AMD Radeon Pro V520 GPUs * vu9p - Xilinx VU9P FPGAs
- accelerator
Total Property MapMemory Mib - Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
- accelerator
Types List<String> - List of accelerator types. Default is any accelerator type.
Valid types: * fpga * gpu * inference
- allowed
Instance List<String>Types List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, you are allowing 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 all instance types.NOTE: If you specify
allowed_instance_types
, you can't specifyexcluded_instance_types
.- bare
Metal String - Indicate whether bare metal instace types should be
included
,excluded
, orrequired
. Default isexcluded
. - baseline
Ebs Property MapBandwidth Mbps - Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
- burstable
Performance String - Indicate whether burstable performance instance types should be
included
,excluded
, orrequired
. Default isexcluded
. - cpu
Manufacturers List<String> List of CPU manufacturer names. Default is any manufacturer.
NOTE: Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Valid names: * amazon-web-services * amd * intel
- excluded
Instance List<String>Types List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples:
m5.8xlarge
,c5*.*
,m5a.*
,r*
,*3*
. For example, if you specifyc5*
, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, 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.NOTE: If you specify
excluded_instance_types
, you can't specifyallowed_instance_types
.- instance
Generations List<String> - List of instance generation names. Default is any generation.
Valid names: * current - Recommended for best performance. * previous - For existing applications optimized for older instance types.
- local
Storage String - Indicate whether instance types with local storage volumes are
included
,excluded
, orrequired
. Default isincluded
. - local
Storage List<String>Types - List of local storage type names. Default any storage type.
Value names: * hdd - hard disk drive * ssd - solid state drive
- max
Spot NumberPrice As Percentage Of Optimal On Demand Price - 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. Conflicts with
spot_max_price_percentage_over_lowest_price
- memory
Gib Property MapPer Vcpu - Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
- network
Bandwidth Property MapGbps - Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum.
- network
Interface Property MapCount - Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
- on
Demand NumberMax Price Percentage Over Lowest Price 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.
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- require
Hibernate BooleanSupport - Indicate whether instance types must support On-Demand Instance Hibernation, either
true
orfalse
. Default isfalse
. - spot
Max NumberPrice Percentage Over Lowest Price 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. Conflicts with
max_spot_price_as_percentage_of_optimal_on_demand_price
If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.
- total
Local Property MapStorage Gb - Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
LaunchTemplateInstanceRequirementsAcceleratorCount, LaunchTemplateInstanceRequirementsAcceleratorCountArgs
LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMib, LaunchTemplateInstanceRequirementsAcceleratorTotalMemoryMibArgs
LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbps, LaunchTemplateInstanceRequirementsBaselineEbsBandwidthMbpsArgs
LaunchTemplateInstanceRequirementsMemoryGibPerVcpu, LaunchTemplateInstanceRequirementsMemoryGibPerVcpuArgs
LaunchTemplateInstanceRequirementsMemoryMib, LaunchTemplateInstanceRequirementsMemoryMibArgs
LaunchTemplateInstanceRequirementsNetworkBandwidthGbps, LaunchTemplateInstanceRequirementsNetworkBandwidthGbpsArgs
LaunchTemplateInstanceRequirementsNetworkInterfaceCount, LaunchTemplateInstanceRequirementsNetworkInterfaceCountArgs
LaunchTemplateInstanceRequirementsTotalLocalStorageGb, LaunchTemplateInstanceRequirementsTotalLocalStorageGbArgs
LaunchTemplateInstanceRequirementsVcpuCount, LaunchTemplateInstanceRequirementsVcpuCountArgs
LaunchTemplateLicenseSpecification, LaunchTemplateLicenseSpecificationArgs
- License
Configuration stringArn - ARN of the license configuration.
- License
Configuration stringArn - ARN of the license configuration.
- license
Configuration StringArn - ARN of the license configuration.
- license
Configuration stringArn - ARN of the license configuration.
- license_
configuration_ strarn - ARN of the license configuration.
- license
Configuration StringArn - ARN of the license configuration.
LaunchTemplateMaintenanceOptions, LaunchTemplateMaintenanceOptionsArgs
- Auto
Recovery 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 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 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 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.
- auto
Recovery 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, LaunchTemplateMetadataOptionsArgs
- Http
Endpoint string - Whether the metadata service is available. Can be
"enabled"
or"disabled"
. (Default:"enabled"
). - Http
Protocol stringIpv6 - Enables or disables the IPv6 endpoint for the instance metadata service. Can be
"enabled"
or"disabled"
. - Http
Put intResponse Hop Limit - 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
to64
. (Default:1
). - Http
Tokens 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"
). - string
Enables or disables access to instance tags from the instance metadata service. Can be
"enabled"
or"disabled"
.For more information, see the documentation on the Instance Metadata Service.
- Http
Endpoint string - Whether the metadata service is available. Can be
"enabled"
or"disabled"
. (Default:"enabled"
). - Http
Protocol stringIpv6 - Enables or disables the IPv6 endpoint for the instance metadata service. Can be
"enabled"
or"disabled"
. - Http
Put intResponse Hop Limit - 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
to64
. (Default:1
). - Http
Tokens 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"
). - string
Enables or disables access to instance tags from the instance metadata service. Can be
"enabled"
or"disabled"
.For more information, see the documentation on the Instance Metadata Service.
- http
Endpoint String - Whether the metadata service is available. Can be
"enabled"
or"disabled"
. (Default:"enabled"
). - http
Protocol StringIpv6 - Enables or disables the IPv6 endpoint for the instance metadata service. Can be
"enabled"
or"disabled"
. - http
Put IntegerResponse Hop Limit - 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
to64
. (Default:1
). - http
Tokens 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"
). - String
Enables or disables access to instance tags from the instance metadata service. Can be
"enabled"
or"disabled"
.For more information, see the documentation on the Instance Metadata Service.
- http
Endpoint string - Whether the metadata service is available. Can be
"enabled"
or"disabled"
. (Default:"enabled"
). - http
Protocol stringIpv6 - Enables or disables the IPv6 endpoint for the instance metadata service. Can be
"enabled"
or"disabled"
. - http
Put numberResponse Hop Limit - 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
to64
. (Default:1
). - http
Tokens 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"
). - string
Enables or disables access to instance tags from the instance metadata service. Can be
"enabled"
or"disabled"
.For more information, see the documentation on the Instance Metadata Service.
- http_
endpoint str - Whether the metadata service is available. Can be
"enabled"
or"disabled"
. (Default:"enabled"
). - http_
protocol_ stripv6 - Enables or disables the IPv6 endpoint for the instance metadata service. Can be
"enabled"
or"disabled"
. - http_
put_ intresponse_ hop_ limit - 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
to64
. (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"
). - str
Enables or disables access to instance tags from the instance metadata service. Can be
"enabled"
or"disabled"
.For more information, see the documentation on the Instance Metadata Service.
- http
Endpoint String - Whether the metadata service is available. Can be
"enabled"
or"disabled"
. (Default:"enabled"
). - http
Protocol StringIpv6 - Enables or disables the IPv6 endpoint for the instance metadata service. Can be
"enabled"
or"disabled"
. - http
Put NumberResponse Hop Limit - 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
to64
. (Default:1
). - http
Tokens 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"
). - String
Enables or disables access to instance tags from the instance metadata service. Can be
"enabled"
or"disabled"
.For more information, see the documentation on the Instance Metadata Service.
LaunchTemplateMonitoring, LaunchTemplateMonitoringArgs
- 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, LaunchTemplateNetworkInterfaceArgs
- Associate
Carrier stringIp Address - 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, can be left unset. - Associate
Public stringIp Address - Associate a public ip address with the network interface. Boolean value, can be left unset.
- Delete
On stringTermination - Whether the network interface should be destroyed on instance termination.
- Description string
- Description of the network interface.
- Device
Index int - The integer index of the network interface attachment.
- Interface
Type string - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. - Ipv4Address
Count 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
- Ipv4Prefix
Count 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
- Ipv6Address
Count 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
- Ipv6Prefix
Count 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
- Network
Card intIndex - 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 stringId - The ID of the network interface to attach.
- Private
Ip stringAddress - The primary private IPv4 address.
- Security
Groups List<string> - A list of security group IDs to associate.
- Subnet
Id string - The VPC Subnet ID to associate.
- Associate
Carrier stringIp Address - 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, can be left unset. - Associate
Public stringIp Address - Associate a public ip address with the network interface. Boolean value, can be left unset.
- Delete
On stringTermination - Whether the network interface should be destroyed on instance termination.
- Description string
- Description of the network interface.
- Device
Index int - The integer index of the network interface attachment.
- Interface
Type string - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. - Ipv4Address
Count 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
- Ipv4Prefix
Count 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
- Ipv6Address
Count 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
- Ipv6Prefix
Count 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
- Network
Card intIndex - 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 stringId - The ID of the network interface to attach.
- Private
Ip stringAddress - The primary private IPv4 address.
- Security
Groups []string - A list of security group IDs to associate.
- Subnet
Id string - The VPC Subnet ID to associate.
- associate
Carrier StringIp Address - 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, can be left unset. - associate
Public StringIp Address - Associate a public ip address with the network interface. Boolean value, can be left unset.
- delete
On StringTermination - Whether the network interface should be destroyed on instance termination.
- description String
- Description of the network interface.
- device
Index Integer - The integer index of the network interface attachment.
- interface
Type String - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. - ipv4Address
Count 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
- ipv4Prefix
Count 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
- ipv6Address
Count 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
- ipv6Prefix
Count 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
- network
Card IntegerIndex - 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 StringId - The ID of the network interface to attach.
- private
Ip StringAddress - The primary private IPv4 address.
- security
Groups List<String> - A list of security group IDs to associate.
- subnet
Id String - The VPC Subnet ID to associate.
- associate
Carrier stringIp Address - 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, can be left unset. - associate
Public stringIp Address - Associate a public ip address with the network interface. Boolean value, can be left unset.
- delete
On stringTermination - Whether the network interface should be destroyed on instance termination.
- description string
- Description of the network interface.
- device
Index number - The integer index of the network interface attachment.
- interface
Type string - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. - ipv4Address
Count 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
- ipv4Prefix
Count 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
- ipv6Address
Count 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
- ipv6Prefix
Count 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
- network
Card numberIndex - 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 stringId - The ID of the network interface to attach.
- private
Ip stringAddress - The primary private IPv4 address.
- security
Groups string[] - A list of security group IDs to associate.
- subnet
Id string - The VPC Subnet ID to associate.
- associate_
carrier_ strip_ address - 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, can be left unset. - associate_
public_ strip_ address - Associate a public ip address with the network interface. Boolean value, can be left unset.
- delete_
on_ strtermination - Whether the network interface should be destroyed on instance termination.
- 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_ intcount - 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_ intcount - 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_ intcount - 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_ intcount - 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_ intindex - 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_ strid - The ID of the network interface to attach.
- private_
ip_ straddress - 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.
- associate
Carrier StringIp Address - 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, can be left unset. - associate
Public StringIp Address - Associate a public ip address with the network interface. Boolean value, can be left unset.
- delete
On StringTermination - Whether the network interface should be destroyed on instance termination.
- description String
- Description of the network interface.
- device
Index Number - The integer index of the network interface attachment.
- interface
Type String - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. - ipv4Address
Count 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
- ipv4Prefix
Count 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
- ipv6Address
Count 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
- ipv6Prefix
Count 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
- network
Card NumberIndex - 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 StringId - The ID of the network interface to attach.
- private
Ip StringAddress - The primary private IPv4 address.
- security
Groups List<String> - A list of security group IDs to associate.
- subnet
Id String - The VPC Subnet ID to associate.
LaunchTemplatePlacement, LaunchTemplatePlacementArgs
- Affinity string
- The affinity setting for an instance on a Dedicated Host.
- Availability
Zone string - The Availability Zone for the instance.
- Group
Name string - The name of the placement group for the instance.
- Host
Id string - The ID of the Dedicated Host for the instance.
- Host
Resource stringGroup Arn - 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 string - Reserved for future use.
- Tenancy string
- The tenancy of the instance (if the instance is running in a VPC). Can be
default
,dedicated
, orhost
.
- Affinity string
- The affinity setting for an instance on a Dedicated Host.
- Availability
Zone string - The Availability Zone for the instance.
- Group
Name string - The name of the placement group for the instance.
- Host
Id string - The ID of the Dedicated Host for the instance.
- Host
Resource stringGroup Arn - 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 string - Reserved for future use.
- Tenancy string
- The tenancy of the instance (if the instance is running in a VPC). Can be
default
,dedicated
, orhost
.
- affinity String
- The affinity setting for an instance on a Dedicated Host.
- availability
Zone String - The Availability Zone for the instance.
- group
Name String - The name of the placement group for the instance.
- host
Id String - The ID of the Dedicated Host for the instance.
- host
Resource StringGroup Arn - The ARN of the Host Resource Group in which to launch instances.
- partition
Number Integer - The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition.
- spread
Domain String - Reserved for future use.
- tenancy String
- The tenancy of the instance (if the instance is running in a VPC). Can be
default
,dedicated
, orhost
.
- affinity string
- The affinity setting for an instance on a Dedicated Host.
- availability
Zone string - The Availability Zone for the instance.
- group
Name string - The name of the placement group for the instance.
- host
Id string - The ID of the Dedicated Host for the instance.
- host
Resource stringGroup Arn - The ARN of the Host Resource Group in which to launch instances.
- partition
Number number - The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition.
- spread
Domain string - Reserved for future use.
- tenancy string
- The tenancy of the instance (if the instance is running in a VPC). Can be
default
,dedicated
, orhost
.
- 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_ strgroup_ arn - 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
, orhost
.
- affinity String
- The affinity setting for an instance on a Dedicated Host.
- availability
Zone String - The Availability Zone for the instance.
- group
Name String - The name of the placement group for the instance.
- host
Id String - The ID of the Dedicated Host for the instance.
- host
Resource StringGroup Arn - The ARN of the Host Resource Group in which to launch instances.
- partition
Number Number - The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition.
- spread
Domain String - Reserved for future use.
- tenancy String
- The tenancy of the instance (if the instance is running in a VPC). Can be
default
,dedicated
, orhost
.
LaunchTemplatePrivateDnsNameOptions, LaunchTemplatePrivateDnsNameOptionsArgs
- Enable
Resource boolName Dns ARecord - Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- Enable
Resource boolName Dns Aaaa Record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
- Hostname
Type 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
andresource-name
.
- Enable
Resource boolName Dns ARecord - Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- Enable
Resource boolName Dns Aaaa Record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
- Hostname
Type 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
andresource-name
.
- enable
Resource BooleanName Dns ARecord - Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- enable
Resource BooleanName Dns Aaaa Record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
- hostname
Type 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
andresource-name
.
- enable
Resource booleanName Dns ARecord - Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- enable
Resource booleanName Dns Aaaa Record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
- hostname
Type 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
andresource-name
.
- enable_
resource_ boolname_ dns_ a_ record - Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- enable_
resource_ boolname_ dns_ aaaa_ record - 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
andresource-name
.
- enable
Resource BooleanName Dns ARecord - Indicates whether to respond to DNS queries for instance hostnames with DNS A records.
- enable
Resource BooleanName Dns Aaaa Record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.
- hostname
Type 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
andresource-name
.
LaunchTemplateTagSpecification, LaunchTemplateTagSpecificationArgs
- Resource
Type string - The type of resource to tag.
- Dictionary<string, string>
- A map of tags to assign to the resource.
- Resource
Type string - The type of resource to tag.
- map[string]string
- A map of tags to assign to the resource.
- resource
Type String - The type of resource to tag.
- Map<String,String>
- A map of tags to assign to the resource.
- resource
Type string - The type of resource to tag.
- {[key: string]: string}
- A map of tags to assign to the resource.
- resource_
type str - The type of resource to tag.
- Mapping[str, str]
- A map of tags to assign to the resource.
- resource
Type String - The type of resource to tag.
- Map<String>
- A map of tags to assign to the resource.
Import
Using pulumi import
, import Launch Templates using the id
. For example:
$ pulumi import aws:ec2/launchTemplate:LaunchTemplate web lt-12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.