We recommend new projects start with resources from the AWS provider.
aws-native.ec2.LaunchTemplate
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Specifies the properties for creating a launch template. The minimum required properties for specifying a launch template are as follows:
- You must specify at least one property for the launch template data.
- You can optionally specify a name for the launch template. If you do not specify a name, CFN creates a name for you.
A launch template can contain some or all of the configuration information to launch an instance. When you launch an instance using a launch template, instance properties that are not specified in the launch template use default values, except the ImageId
property, which has no default value. If you do not specify an AMI ID for the launch template ImageId
property, you must specify an AMI ID for the instance ImageId
property.
For more information, see Launch an instance from a launch template in the Amazon EC2 User Guide.
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: LaunchTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LaunchTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
launch_template_data: Optional[LaunchTemplateDataArgs] = None,
launch_template_name: Optional[str] = None,
tag_specifications: Optional[Sequence[LaunchTemplateTagSpecificationArgs]] = None,
version_description: Optional[str] = None)
func NewLaunchTemplate(ctx *Context, name string, args LaunchTemplateArgs, opts ...ResourceOption) (*LaunchTemplate, error)
public LaunchTemplate(string name, LaunchTemplateArgs args, CustomResourceOptions? opts = null)
public LaunchTemplate(String name, LaunchTemplateArgs args)
public LaunchTemplate(String name, LaunchTemplateArgs args, CustomResourceOptions options)
type: aws-native: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.
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:
- Launch
Template Pulumi.Data Aws Native. Ec2. Inputs. Launch Template Data - The information for the launch template.
- Launch
Template stringName - A name for the launch template.
- List<Pulumi.
Aws Native. Ec2. Inputs. Launch Template Tag Specification> - The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
launch-template
. To specify the tags for the resources that are created when an instance is launched, you must use TagSpecifications. - Version
Description string - A description for the first version of the launch template.
- Launch
Template LaunchData Template Data Args - The information for the launch template.
- Launch
Template stringName - A name for the launch template.
- []Launch
Template Tag Specification Args - The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
launch-template
. To specify the tags for the resources that are created when an instance is launched, you must use TagSpecifications. - Version
Description string - A description for the first version of the launch template.
- launch
Template LaunchData Template Data - The information for the launch template.
- launch
Template StringName - A name for the launch template.
- List<Launch
Template Tag Specification> - The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
launch-template
. To specify the tags for the resources that are created when an instance is launched, you must use TagSpecifications. - version
Description String - A description for the first version of the launch template.
- launch
Template LaunchData Template Data - The information for the launch template.
- launch
Template stringName - A name for the launch template.
- Launch
Template Tag Specification[] - The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
launch-template
. To specify the tags for the resources that are created when an instance is launched, you must use TagSpecifications. - version
Description string - A description for the first version of the launch template.
- launch_
template_ Launchdata Template Data Args - The information for the launch template.
- launch_
template_ strname - A name for the launch template.
- tag_
specifications Sequence[LaunchTemplate Tag Specification Args] - The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
launch-template
. To specify the tags for the resources that are created when an instance is launched, you must use TagSpecifications. - version_
description str - A description for the first version of the launch template.
- launch
Template Property MapData - The information for the launch template.
- launch
Template StringName - A name for the launch template.
- List<Property Map>
- The tags to apply to the launch template on creation. To tag the launch template, the resource type must be
launch-template
. To specify the tags for the resources that are created when an instance is launched, you must use TagSpecifications. - version
Description String - A description for the first version of the launch template.
Outputs
All input properties are implicitly available as output properties. Additionally, the LaunchTemplate resource produces the following output properties:
- Default
Version stringNumber The default version of the launch template, such as 2.
The default version of a launch template cannot be specified in AWS CloudFormation . The default version can be set in the Amazon EC2 console or by using the
modify-launch-template
AWS CLI command.- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version stringNumber - The latest version of the launch template, such as
5
. - Launch
Template stringId - The ID of the launch template.
- Default
Version stringNumber The default version of the launch template, such as 2.
The default version of a launch template cannot be specified in AWS CloudFormation . The default version can be set in the Amazon EC2 console or by using the
modify-launch-template
AWS CLI command.- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version stringNumber - The latest version of the launch template, such as
5
. - Launch
Template stringId - The ID of the launch template.
- default
Version StringNumber The default version of the launch template, such as 2.
The default version of a launch template cannot be specified in AWS CloudFormation . The default version can be set in the Amazon EC2 console or by using the
modify-launch-template
AWS CLI command.- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version StringNumber - The latest version of the launch template, such as
5
. - launch
Template StringId - The ID of the launch template.
- default
Version stringNumber The default version of the launch template, such as 2.
The default version of a launch template cannot be specified in AWS CloudFormation . The default version can be set in the Amazon EC2 console or by using the
modify-launch-template
AWS CLI command.- id string
- The provider-assigned unique ID for this managed resource.
- latest
Version stringNumber - The latest version of the launch template, such as
5
. - launch
Template stringId - The ID of the launch template.
- default_
version_ strnumber The default version of the launch template, such as 2.
The default version of a launch template cannot be specified in AWS CloudFormation . The default version can be set in the Amazon EC2 console or by using the
modify-launch-template
AWS CLI command.- id str
- The provider-assigned unique ID for this managed resource.
- latest_
version_ strnumber - The latest version of the launch template, such as
5
. - launch_
template_ strid - The ID of the launch template.
- default
Version StringNumber The default version of the launch template, such as 2.
The default version of a launch template cannot be specified in AWS CloudFormation . The default version can be set in the Amazon EC2 console or by using the
modify-launch-template
AWS CLI command.- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version StringNumber - The latest version of the launch template, such as
5
. - launch
Template StringId - The ID of the launch template.
Supporting Types
LaunchTemplateAcceleratorCount, LaunchTemplateAcceleratorCountArgs
LaunchTemplateAcceleratorTotalMemoryMiB, LaunchTemplateAcceleratorTotalMemoryMiBArgs
LaunchTemplateBaselineEbsBandwidthMbps, LaunchTemplateBaselineEbsBandwidthMbpsArgs
LaunchTemplateBlockDeviceMapping, LaunchTemplateBlockDeviceMappingArgs
- Device
Name string - The device name (for example, /dev/sdh or xvdh).
- Ebs
Pulumi.
Aws Native. Ec2. Inputs. Launch Template Ebs - Parameters used to automatically set up EBS volumes when the instance is launched.
- No
Device string - To omit the device from the block device mapping, specify an empty string.
- Virtual
Name string - The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
- Device
Name string - The device name (for example, /dev/sdh or xvdh).
- Ebs
Launch
Template Ebs - Parameters used to automatically set up EBS volumes when the instance is launched.
- No
Device string - To omit the device from the block device mapping, specify an empty string.
- Virtual
Name string - The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
- device
Name String - The device name (for example, /dev/sdh or xvdh).
- ebs
Launch
Template Ebs - Parameters used to automatically set up EBS volumes when the instance is launched.
- no
Device String - To omit the device from the block device mapping, specify an empty string.
- virtual
Name String - The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
- device
Name string - The device name (for example, /dev/sdh or xvdh).
- ebs
Launch
Template Ebs - Parameters used to automatically set up EBS volumes when the instance is launched.
- no
Device string - To omit the device from the block device mapping, specify an empty string.
- virtual
Name string - The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
- device_
name str - The device name (for example, /dev/sdh or xvdh).
- ebs
Launch
Template Ebs - Parameters used to automatically set up EBS volumes when the instance is launched.
- no_
device str - To omit the device from the block device mapping, specify an empty string.
- virtual_
name str - The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
- device
Name String - The device name (for example, /dev/sdh or xvdh).
- ebs Property Map
- Parameters used to automatically set up EBS volumes when the instance is launched.
- no
Device String - To omit the device from the block device mapping, specify an empty string.
- virtual
Name String - The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
LaunchTemplateCapacityReservationSpecification, LaunchTemplateCapacityReservationSpecificationArgs
- Capacity
Reservation stringPreference - Indicates the instance's Capacity Reservation preferences. Possible preferences include:
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
- Capacity
Reservation Pulumi.Target Aws Native. Ec2. Inputs. Launch Template Capacity Reservation Target - Information about the target Capacity Reservation or Capacity Reservation group.
- Capacity
Reservation stringPreference - Indicates the instance's Capacity Reservation preferences. Possible preferences include:
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
- Capacity
Reservation LaunchTarget Template Capacity Reservation Target - Information about the target Capacity Reservation or Capacity Reservation group.
- capacity
Reservation StringPreference - Indicates the instance's Capacity Reservation preferences. Possible preferences include:
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
- capacity
Reservation LaunchTarget Template Capacity Reservation Target - Information about the target Capacity Reservation or Capacity Reservation group.
- capacity
Reservation stringPreference - Indicates the instance's Capacity Reservation preferences. Possible preferences include:
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
- capacity
Reservation LaunchTarget Template Capacity Reservation Target - Information about the target Capacity Reservation or Capacity Reservation group.
- capacity_
reservation_ strpreference - Indicates the instance's Capacity Reservation preferences. Possible preferences include:
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
- capacity_
reservation_ Launchtarget Template Capacity Reservation Target - Information about the target Capacity Reservation or Capacity Reservation group.
- capacity
Reservation StringPreference - Indicates the instance's Capacity Reservation preferences. Possible preferences include:
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
- capacity
Reservation Property MapTarget - Information about the target Capacity Reservation or Capacity Reservation group.
LaunchTemplateCapacityReservationTarget, LaunchTemplateCapacityReservationTargetArgs
- 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.
LaunchTemplateConnectionTrackingSpecification, LaunchTemplateConnectionTrackingSpecificationArgs
- Tcp
Established intTimeout - Timeout (in seconds) for idle TCP connections in an established state. Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.
- Udp
Stream intTimeout - Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.
- Udp
Timeout int - Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.
- Tcp
Established intTimeout - Timeout (in seconds) for idle TCP connections in an established state. Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.
- Udp
Stream intTimeout - Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.
- Udp
Timeout int - Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.
- tcp
Established IntegerTimeout - Timeout (in seconds) for idle TCP connections in an established state. Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.
- udp
Stream IntegerTimeout - Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.
- udp
Timeout Integer - Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.
- tcp
Established numberTimeout - Timeout (in seconds) for idle TCP connections in an established state. Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.
- udp
Stream numberTimeout - Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.
- udp
Timeout number - Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.
- tcp_
established_ inttimeout - Timeout (in seconds) for idle TCP connections in an established state. Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.
- udp_
stream_ inttimeout - Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.
- udp_
timeout int - Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.
- tcp
Established NumberTimeout - Timeout (in seconds) for idle TCP connections in an established state. Min: 60 seconds. Max: 432000 seconds (5 days). Default: 432000 seconds. Recommended: Less than 432000 seconds.
- udp
Stream NumberTimeout - Timeout (in seconds) for idle UDP flows classified as streams which have seen more than one request-response transaction. Min: 60 seconds. Max: 180 seconds (3 minutes). Default: 180 seconds.
- udp
Timeout Number - Timeout (in seconds) for idle UDP flows that have seen traffic only in a single direction or a single request-response transaction. Min: 30 seconds. Max: 60 seconds. Default: 30 seconds.
LaunchTemplateCpuOptions, LaunchTemplateCpuOptionsArgs
- Amd
Sev Pulumi.Snp Aws Native. Ec2. Launch Template Cpu Options Amd Sev Snp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.
- Core
Count int - The number of CPU cores for the instance.
- Threads
Per intCore - The number of threads per CPU core. To disable multithreading for the instance, specify a value of
1
. Otherwise, specify the default value of2
.
- Amd
Sev LaunchSnp Template Cpu Options Amd Sev Snp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.
- Core
Count int - The number of CPU cores for the instance.
- Threads
Per intCore - The number of threads per CPU core. To disable multithreading for the instance, specify a value of
1
. Otherwise, specify the default value of2
.
- amd
Sev LaunchSnp Template Cpu Options Amd Sev Snp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.
- core
Count Integer - The number of CPU cores for the instance.
- threads
Per IntegerCore - The number of threads per CPU core. To disable multithreading for the instance, specify a value of
1
. Otherwise, specify the default value of2
.
- amd
Sev LaunchSnp Template Cpu Options Amd Sev Snp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.
- core
Count number - The number of CPU cores for the instance.
- threads
Per numberCore - The number of threads per CPU core. To disable multithreading for the instance, specify a value of
1
. Otherwise, specify the default value of2
.
- amd_
sev_ Launchsnp Template Cpu Options Amd Sev Snp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.
- core_
count int - The number of CPU cores for the instance.
- threads_
per_ intcore - The number of threads per CPU core. To disable multithreading for the instance, specify a value of
1
. Otherwise, specify the default value of2
.
- amd
Sev "enabled" | "disabled"Snp - Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.
- core
Count Number - The number of CPU cores for the instance.
- threads
Per NumberCore - The number of threads per CPU core. To disable multithreading for the instance, specify a value of
1
. Otherwise, specify the default value of2
.
LaunchTemplateCpuOptionsAmdSevSnp, LaunchTemplateCpuOptionsAmdSevSnpArgs
- Enabled
- enabled
- Disabled
- disabled
- Launch
Template Cpu Options Amd Sev Snp Enabled - enabled
- Launch
Template Cpu Options Amd Sev Snp Disabled - disabled
- Enabled
- enabled
- Disabled
- disabled
- Enabled
- enabled
- Disabled
- disabled
- ENABLED
- enabled
- DISABLED
- disabled
- "enabled"
- enabled
- "disabled"
- disabled
LaunchTemplateCreditSpecification, LaunchTemplateCreditSpecificationArgs
- Cpu
Credits string - The credit option for CPU usage of a T instance.
Valid values:
standard
|unlimited
- Cpu
Credits string - The credit option for CPU usage of a T instance.
Valid values:
standard
|unlimited
- cpu
Credits String - The credit option for CPU usage of a T instance.
Valid values:
standard
|unlimited
- cpu
Credits string - The credit option for CPU usage of a T instance.
Valid values:
standard
|unlimited
- cpu_
credits str - The credit option for CPU usage of a T instance.
Valid values:
standard
|unlimited
- cpu
Credits String - The credit option for CPU usage of a T instance.
Valid values:
standard
|unlimited
LaunchTemplateData, LaunchTemplateDataArgs
- Block
Device List<Pulumi.Mappings Aws Native. Ec2. Inputs. Launch Template Block Device Mapping> - The block device mapping.
- Capacity
Reservation Pulumi.Specification Aws Native. Ec2. Inputs. Launch Template Capacity Reservation Specification - The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to
open
, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). - Cpu
Options Pulumi.Aws Native. Ec2. Inputs. Launch Template Cpu Options - The CPU options for the instance. For more information, see Optimize CPU options in the Amazon EC2 User Guide.
- Credit
Specification Pulumi.Aws Native. Ec2. Inputs. Launch Template Credit Specification - The credit option for CPU usage of the instance. Valid only for T instances.
- Disable
Api boolStop - Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection for your instance in the Amazon EC2 User Guide.
- Disable
Api boolTermination - If you set this parameter to
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you setInstanceInitiatedShutdownBehavior
toterminate
, you can terminate the instance by running the shutdown command from the instance. - Ebs
Optimized bool - Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
- Elastic
Gpu List<Pulumi.Specifications Aws Native. Ec2. Inputs. Launch Template Elastic Gpu Specification> - Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- Elastic
Inference List<Pulumi.Accelerators Aws Native. Ec2. Inputs. Launch Template Elastic Inference Accelerator> - An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads. You cannot specify accelerators from different generations in the same request. Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- Enclave
Options Pulumi.Aws Native. Ec2. Inputs. Launch Template Enclave Options - Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see What is Nitro Enclaves? in the Nitro Enclaves User Guide. You can't enable AWS Nitro Enclaves and hibernation on the same instance.
- Hibernation
Options Pulumi.Aws Native. Ec2. Inputs. Launch Template Hibernation Options - Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
- Iam
Instance Pulumi.Profile Aws Native. Ec2. Inputs. Launch Template Iam Instance Profile - The name or Amazon Resource Name (ARN) of an IAM instance profile.
- Image
Id string The ID of the AMI. Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch. Valid formats:
ami-0ac394d6a3example
resolve:ssm:parameter-name
resolve:ssm:parameter-name:version-number
resolve:ssm:parameter-name:label
For more information, see Use a Systems Manager parameter to find an AMI in the Amazon Elastic Compute Cloud User Guide.
- Instance
Initiated stringShutdown Behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default:
stop
- Instance
Market Pulumi.Options Aws Native. Ec2. Inputs. Launch Template Instance Market Options - The market (purchasing) option for the instances.
- Instance
Requirements Pulumi.Aws Native. Ec2. Inputs. Launch Template Instance Requirements The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes. You must specify
VCpuCount
andMemoryMiB
. All other attributes are optional. Any unspecified optional attribute is set to its default. When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values. To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:AllowedInstanceTypes
- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.ExcludedInstanceTypes
- The instance types to exclude from the list, even if they match your specified attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
. Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard, or with the RunInstances API or AWS::EC2::Instance AWS CloudFormation resource, you can't specifyInstanceRequirements
. For more information, see Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide.- Instance
Type string - The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
If you specify
InstanceType
, you can't specifyInstanceRequirements
. - Kernel
Id string - The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon EC2 User Guide.
- Key
Name string - The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair. If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
- License
Specifications List<Pulumi.Aws Native. Ec2. Inputs. Launch Template License Specification> - The license configurations.
- Maintenance
Options Pulumi.Aws Native. Ec2. Inputs. Launch Template Maintenance Options - The maintenance options of your instance.
- Metadata
Options Pulumi.Aws Native. Ec2. Inputs. Launch Template Metadata Options - The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
- Monitoring
Pulumi.
Aws Native. Ec2. Inputs. Launch Template Monitoring - The monitoring for the instance.
- Network
Interfaces List<Pulumi.Aws Native. Ec2. Inputs. Launch Template Network Interface> - The network interfaces for the instance.
- Placement
Pulumi.
Aws Native. Ec2. Inputs. Launch Template Placement - The placement for the instance.
- Private
Dns Pulumi.Name Options Aws Native. Ec2. Inputs. Launch Template Private Dns Name Options - The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
- Ram
Disk stringId - The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide.
- Security
Group List<string>Ids - The IDs of the security groups. You can specify the IDs of existing security groups and references to resources created by the stack template. If you specify a network interface, you must specify any security groups as part of the network interface instead.
- Security
Groups List<string> - The names of the security groups. For a nondefault VPC, you must use security group IDs instead. If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- List<Pulumi.
Aws Native. Ec2. Inputs. Tag Specification> - The tags to apply to the resources that are created during instance launch. To tag a resource after it has been created, see CreateTags. To tag the launch template itself, use TagSpecifications.
- User
Data string - The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see Run commands on your Amazon EC2 instance at launch in the Amazon EC2 User Guide. If you are creating the launch template for use with BATCH, the user data must be provided in the MIME multi-part archive format. For more information, see Amazon EC2 user data in launch templates in the User Guide.
- Block
Device []LaunchMappings Template Block Device Mapping - The block device mapping.
- Capacity
Reservation LaunchSpecification Template Capacity Reservation Specification - The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to
open
, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). - Cpu
Options LaunchTemplate Cpu Options - The CPU options for the instance. For more information, see Optimize CPU options in the Amazon EC2 User Guide.
- Credit
Specification LaunchTemplate Credit Specification - The credit option for CPU usage of the instance. Valid only for T instances.
- Disable
Api boolStop - Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection for your instance in the Amazon EC2 User Guide.
- Disable
Api boolTermination - If you set this parameter to
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you setInstanceInitiatedShutdownBehavior
toterminate
, you can terminate the instance by running the shutdown command from the instance. - Ebs
Optimized bool - Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
- Elastic
Gpu []LaunchSpecifications Template Elastic Gpu Specification - Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- Elastic
Inference []LaunchAccelerators Template Elastic Inference Accelerator - An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads. You cannot specify accelerators from different generations in the same request. Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- Enclave
Options LaunchTemplate Enclave Options - Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see What is Nitro Enclaves? in the Nitro Enclaves User Guide. You can't enable AWS Nitro Enclaves and hibernation on the same instance.
- Hibernation
Options LaunchTemplate Hibernation Options - Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
- Iam
Instance LaunchProfile Template Iam Instance Profile - The name or Amazon Resource Name (ARN) of an IAM instance profile.
- Image
Id string The ID of the AMI. Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch. Valid formats:
ami-0ac394d6a3example
resolve:ssm:parameter-name
resolve:ssm:parameter-name:version-number
resolve:ssm:parameter-name:label
For more information, see Use a Systems Manager parameter to find an AMI in the Amazon Elastic Compute Cloud User Guide.
- Instance
Initiated stringShutdown Behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default:
stop
- Instance
Market LaunchOptions Template Instance Market Options - The market (purchasing) option for the instances.
- Instance
Requirements LaunchTemplate Instance Requirements The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes. You must specify
VCpuCount
andMemoryMiB
. All other attributes are optional. Any unspecified optional attribute is set to its default. When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values. To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:AllowedInstanceTypes
- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.ExcludedInstanceTypes
- The instance types to exclude from the list, even if they match your specified attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
. Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard, or with the RunInstances API or AWS::EC2::Instance AWS CloudFormation resource, you can't specifyInstanceRequirements
. For more information, see Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide.- Instance
Type string - The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
If you specify
InstanceType
, you can't specifyInstanceRequirements
. - Kernel
Id string - The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon EC2 User Guide.
- Key
Name string - The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair. If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
- License
Specifications []LaunchTemplate License Specification - The license configurations.
- Maintenance
Options LaunchTemplate Maintenance Options - The maintenance options of your instance.
- Metadata
Options LaunchTemplate Metadata Options - The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
- Monitoring
Launch
Template Monitoring - The monitoring for the instance.
- Network
Interfaces []LaunchTemplate Network Interface - The network interfaces for the instance.
- Placement
Launch
Template Placement - The placement for the instance.
- Private
Dns LaunchName Options Template Private Dns Name Options - The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
- Ram
Disk stringId - The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide.
- Security
Group []stringIds - The IDs of the security groups. You can specify the IDs of existing security groups and references to resources created by the stack template. If you specify a network interface, you must specify any security groups as part of the network interface instead.
- Security
Groups []string - The names of the security groups. For a nondefault VPC, you must use security group IDs instead. If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- []Tag
Specification - The tags to apply to the resources that are created during instance launch. To tag a resource after it has been created, see CreateTags. To tag the launch template itself, use TagSpecifications.
- User
Data string - The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see Run commands on your Amazon EC2 instance at launch in the Amazon EC2 User Guide. If you are creating the launch template for use with BATCH, the user data must be provided in the MIME multi-part archive format. For more information, see Amazon EC2 user data in launch templates in the User Guide.
- block
Device List<LaunchMappings Template Block Device Mapping> - The block device mapping.
- capacity
Reservation LaunchSpecification Template Capacity Reservation Specification - The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to
open
, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). - cpu
Options LaunchTemplate Cpu Options - The CPU options for the instance. For more information, see Optimize CPU options in the Amazon EC2 User Guide.
- credit
Specification LaunchTemplate Credit Specification - The credit option for CPU usage of the instance. Valid only for T instances.
- disable
Api BooleanStop - Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection for your instance in the Amazon EC2 User Guide.
- disable
Api BooleanTermination - If you set this parameter to
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you setInstanceInitiatedShutdownBehavior
toterminate
, you can terminate the instance by running the shutdown command from the instance. - ebs
Optimized Boolean - Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
- elastic
Gpu List<LaunchSpecifications Template Elastic Gpu Specification> - Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- elastic
Inference List<LaunchAccelerators Template Elastic Inference Accelerator> - An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads. You cannot specify accelerators from different generations in the same request. Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- enclave
Options LaunchTemplate Enclave Options - Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see What is Nitro Enclaves? in the Nitro Enclaves User Guide. You can't enable AWS Nitro Enclaves and hibernation on the same instance.
- hibernation
Options LaunchTemplate Hibernation Options - Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
- iam
Instance LaunchProfile Template Iam Instance Profile - The name or Amazon Resource Name (ARN) of an IAM instance profile.
- image
Id String The ID of the AMI. Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch. Valid formats:
ami-0ac394d6a3example
resolve:ssm:parameter-name
resolve:ssm:parameter-name:version-number
resolve:ssm:parameter-name:label
For more information, see Use a Systems Manager parameter to find an AMI in the Amazon Elastic Compute Cloud User Guide.
- instance
Initiated StringShutdown Behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default:
stop
- instance
Market LaunchOptions Template Instance Market Options - The market (purchasing) option for the instances.
- instance
Requirements LaunchTemplate Instance Requirements The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes. You must specify
VCpuCount
andMemoryMiB
. All other attributes are optional. Any unspecified optional attribute is set to its default. When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values. To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:AllowedInstanceTypes
- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.ExcludedInstanceTypes
- The instance types to exclude from the list, even if they match your specified attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
. Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard, or with the RunInstances API or AWS::EC2::Instance AWS CloudFormation resource, you can't specifyInstanceRequirements
. For more information, see Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide.- instance
Type String - The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
If you specify
InstanceType
, you can't specifyInstanceRequirements
. - kernel
Id String - The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon EC2 User Guide.
- key
Name String - The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair. If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
- license
Specifications List<LaunchTemplate License Specification> - The license configurations.
- maintenance
Options LaunchTemplate Maintenance Options - The maintenance options of your instance.
- metadata
Options LaunchTemplate Metadata Options - The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
- monitoring
Launch
Template Monitoring - The monitoring for the instance.
- network
Interfaces List<LaunchTemplate Network Interface> - The network interfaces for the instance.
- placement
Launch
Template Placement - The placement for the instance.
- private
Dns LaunchName Options Template Private Dns Name Options - The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
- ram
Disk StringId - The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide.
- security
Group List<String>Ids - The IDs of the security groups. You can specify the IDs of existing security groups and references to resources created by the stack template. If you specify a network interface, you must specify any security groups as part of the network interface instead.
- security
Groups List<String> - The names of the security groups. For a nondefault VPC, you must use security group IDs instead. If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- List<Tag
Specification> - The tags to apply to the resources that are created during instance launch. To tag a resource after it has been created, see CreateTags. To tag the launch template itself, use TagSpecifications.
- user
Data String - The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see Run commands on your Amazon EC2 instance at launch in the Amazon EC2 User Guide. If you are creating the launch template for use with BATCH, the user data must be provided in the MIME multi-part archive format. For more information, see Amazon EC2 user data in launch templates in the User Guide.
- block
Device LaunchMappings Template Block Device Mapping[] - The block device mapping.
- capacity
Reservation LaunchSpecification Template Capacity Reservation Specification - The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to
open
, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). - cpu
Options LaunchTemplate Cpu Options - The CPU options for the instance. For more information, see Optimize CPU options in the Amazon EC2 User Guide.
- credit
Specification LaunchTemplate Credit Specification - The credit option for CPU usage of the instance. Valid only for T instances.
- disable
Api booleanStop - Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection for your instance in the Amazon EC2 User Guide.
- disable
Api booleanTermination - If you set this parameter to
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you setInstanceInitiatedShutdownBehavior
toterminate
, you can terminate the instance by running the shutdown command from the instance. - ebs
Optimized boolean - Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
- elastic
Gpu LaunchSpecifications Template Elastic Gpu Specification[] - Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- elastic
Inference LaunchAccelerators Template Elastic Inference Accelerator[] - An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads. You cannot specify accelerators from different generations in the same request. Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- enclave
Options LaunchTemplate Enclave Options - Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see What is Nitro Enclaves? in the Nitro Enclaves User Guide. You can't enable AWS Nitro Enclaves and hibernation on the same instance.
- hibernation
Options LaunchTemplate Hibernation Options - Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
- iam
Instance LaunchProfile Template Iam Instance Profile - The name or Amazon Resource Name (ARN) of an IAM instance profile.
- image
Id string The ID of the AMI. Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch. Valid formats:
ami-0ac394d6a3example
resolve:ssm:parameter-name
resolve:ssm:parameter-name:version-number
resolve:ssm:parameter-name:label
For more information, see Use a Systems Manager parameter to find an AMI in the Amazon Elastic Compute Cloud User Guide.
- instance
Initiated stringShutdown Behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default:
stop
- instance
Market LaunchOptions Template Instance Market Options - The market (purchasing) option for the instances.
- instance
Requirements LaunchTemplate Instance Requirements The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes. You must specify
VCpuCount
andMemoryMiB
. All other attributes are optional. Any unspecified optional attribute is set to its default. When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values. To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:AllowedInstanceTypes
- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.ExcludedInstanceTypes
- The instance types to exclude from the list, even if they match your specified attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
. Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard, or with the RunInstances API or AWS::EC2::Instance AWS CloudFormation resource, you can't specifyInstanceRequirements
. For more information, see Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide.- instance
Type string - The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
If you specify
InstanceType
, you can't specifyInstanceRequirements
. - kernel
Id string - The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon EC2 User Guide.
- key
Name string - The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair. If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
- license
Specifications LaunchTemplate License Specification[] - The license configurations.
- maintenance
Options LaunchTemplate Maintenance Options - The maintenance options of your instance.
- metadata
Options LaunchTemplate Metadata Options - The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
- monitoring
Launch
Template Monitoring - The monitoring for the instance.
- network
Interfaces LaunchTemplate Network Interface[] - The network interfaces for the instance.
- placement
Launch
Template Placement - The placement for the instance.
- private
Dns LaunchName Options Template Private Dns Name Options - The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
- ram
Disk stringId - The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide.
- security
Group string[]Ids - The IDs of the security groups. You can specify the IDs of existing security groups and references to resources created by the stack template. If you specify a network interface, you must specify any security groups as part of the network interface instead.
- security
Groups string[] - The names of the security groups. For a nondefault VPC, you must use security group IDs instead. If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- Tag
Specification[] - The tags to apply to the resources that are created during instance launch. To tag a resource after it has been created, see CreateTags. To tag the launch template itself, use TagSpecifications.
- user
Data string - The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see Run commands on your Amazon EC2 instance at launch in the Amazon EC2 User Guide. If you are creating the launch template for use with BATCH, the user data must be provided in the MIME multi-part archive format. For more information, see Amazon EC2 user data in launch templates in the User Guide.
- block_
device_ Sequence[Launchmappings Template Block Device Mapping] - The block device mapping.
- capacity_
reservation_ Launchspecification Template Capacity Reservation Specification - The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to
open
, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). - cpu_
options LaunchTemplate Cpu Options - The CPU options for the instance. For more information, see Optimize CPU options in the Amazon EC2 User Guide.
- credit_
specification LaunchTemplate Credit Specification - The credit option for CPU usage of the instance. Valid only for T instances.
- disable_
api_ boolstop - Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection for your instance in the Amazon EC2 User Guide.
- disable_
api_ booltermination - If you set this parameter to
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you setInstanceInitiatedShutdownBehavior
toterminate
, you can terminate the instance by running the shutdown command from the instance. - ebs_
optimized bool - Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
- elastic_
gpu_ Sequence[Launchspecifications Template Elastic Gpu Specification] - Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- elastic_
inference_ Sequence[Launchaccelerators Template Elastic Inference Accelerator] - An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads. You cannot specify accelerators from different generations in the same request. Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- enclave_
options LaunchTemplate Enclave Options - Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see What is Nitro Enclaves? in the Nitro Enclaves User Guide. You can't enable AWS Nitro Enclaves and hibernation on the same instance.
- hibernation_
options LaunchTemplate Hibernation Options - Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
- iam_
instance_ Launchprofile Template Iam Instance Profile - The name or Amazon Resource Name (ARN) of an IAM instance profile.
- image_
id str The ID of the AMI. Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch. Valid formats:
ami-0ac394d6a3example
resolve:ssm:parameter-name
resolve:ssm:parameter-name:version-number
resolve:ssm:parameter-name:label
For more information, see Use a Systems Manager parameter to find an AMI in the Amazon Elastic Compute Cloud User Guide.
- instance_
initiated_ strshutdown_ behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default:
stop
- instance_
market_ Launchoptions Template Instance Market Options - The market (purchasing) option for the instances.
- instance_
requirements LaunchTemplate Instance Requirements The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes. You must specify
VCpuCount
andMemoryMiB
. All other attributes are optional. Any unspecified optional attribute is set to its default. When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values. To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:AllowedInstanceTypes
- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.ExcludedInstanceTypes
- The instance types to exclude from the list, even if they match your specified attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
. Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard, or with the RunInstances API or AWS::EC2::Instance AWS CloudFormation resource, you can't specifyInstanceRequirements
. For more information, see Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide.- instance_
type str - The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
If you specify
InstanceType
, you can't specifyInstanceRequirements
. - kernel_
id str - The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon EC2 User Guide.
- key_
name str - The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair. If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
- license_
specifications Sequence[LaunchTemplate License Specification] - The license configurations.
- maintenance_
options LaunchTemplate Maintenance Options - The maintenance options of your instance.
- metadata_
options LaunchTemplate Metadata Options - The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
- monitoring
Launch
Template Monitoring - The monitoring for the instance.
- network_
interfaces Sequence[LaunchTemplate Network Interface] - The network interfaces for the instance.
- placement
Launch
Template Placement - The placement for the instance.
- private_
dns_ Launchname_ options Template Private Dns Name Options - The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
- ram_
disk_ strid - The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide.
- security_
group_ Sequence[str]ids - The IDs of the security groups. You can specify the IDs of existing security groups and references to resources created by the stack template. If you specify a network interface, you must specify any security groups as part of the network interface instead.
- security_
groups Sequence[str] - The names of the security groups. For a nondefault VPC, you must use security group IDs instead. If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- tag_
specifications Sequence[TagSpecification] - The tags to apply to the resources that are created during instance launch. To tag a resource after it has been created, see CreateTags. To tag the launch template itself, use TagSpecifications.
- user_
data str - The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see Run commands on your Amazon EC2 instance at launch in the Amazon EC2 User Guide. If you are creating the launch template for use with BATCH, the user data must be provided in the MIME multi-part archive format. For more information, see Amazon EC2 user data in launch templates in the User Guide.
- block
Device List<Property Map>Mappings - The block device mapping.
- capacity
Reservation Property MapSpecification - The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to
open
, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). - cpu
Options Property Map - The CPU options for the instance. For more information, see Optimize CPU options in the Amazon EC2 User Guide.
- credit
Specification Property Map - The credit option for CPU usage of the instance. Valid only for T instances.
- disable
Api BooleanStop - Indicates whether to enable the instance for stop protection. For more information, see Enable stop protection for your instance in the Amazon EC2 User Guide.
- disable
Api BooleanTermination - If you set this parameter to
true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you setInstanceInitiatedShutdownBehavior
toterminate
, you can terminate the instance by running the shutdown command from the instance. - ebs
Optimized Boolean - Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
- elastic
Gpu List<Property Map>Specifications - Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
- elastic
Inference List<Property Map>Accelerators - An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads. You cannot specify accelerators from different generations in the same request. Starting April 15, 2023, AWS will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.
- enclave
Options Property Map - Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see What is Nitro Enclaves? in the Nitro Enclaves User Guide. You can't enable AWS Nitro Enclaves and hibernation on the same instance.
- hibernation
Options Property Map - Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
- iam
Instance Property MapProfile - The name or Amazon Resource Name (ARN) of an IAM instance profile.
- image
Id String The ID of the AMI. Alternatively, you can specify a Systems Manager parameter, which will resolve to an AMI ID on launch. Valid formats:
ami-0ac394d6a3example
resolve:ssm:parameter-name
resolve:ssm:parameter-name:version-number
resolve:ssm:parameter-name:label
For more information, see Use a Systems Manager parameter to find an AMI in the Amazon Elastic Compute Cloud User Guide.
- instance
Initiated StringShutdown Behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default:
stop
- instance
Market Property MapOptions - The market (purchasing) option for the instances.
- instance
Requirements Property Map The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes. You must specify
VCpuCount
andMemoryMiB
. All other attributes are optional. Any unspecified optional attribute is set to its default. When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values. To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:AllowedInstanceTypes
- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.ExcludedInstanceTypes
- The instance types to exclude from the list, even if they match your specified attributes.
If you specify
InstanceRequirements
, you can't specifyInstanceType
. Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard, or with the RunInstances API or AWS::EC2::Instance AWS CloudFormation resource, you can't specifyInstanceRequirements
. For more information, see Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide.- instance
Type String - The instance type. For more information, see Amazon EC2 instance types in the Amazon EC2 User Guide.
If you specify
InstanceType
, you can't specifyInstanceRequirements
. - kernel
Id String - The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon EC2 User Guide.
- key
Name String - The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair. If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
- license
Specifications List<Property Map> - The license configurations.
- maintenance
Options Property Map - The maintenance options of your instance.
- metadata
Options Property Map - The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
- monitoring Property Map
- The monitoring for the instance.
- network
Interfaces List<Property Map> - The network interfaces for the instance.
- placement Property Map
- The placement for the instance.
- private
Dns Property MapName Options - The hostname type for EC2 instances launched into this subnet and how DNS A and AAAA record queries should be handled. For more information, see Amazon EC2 instance hostname types in the User Guide.
- ram
Disk StringId - The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User provided kernels in the Amazon EC2 User Guide.
- security
Group List<String>Ids - The IDs of the security groups. You can specify the IDs of existing security groups and references to resources created by the stack template. If you specify a network interface, you must specify any security groups as part of the network interface instead.
- security
Groups List<String> - The names of the security groups. For a nondefault VPC, you must use security group IDs instead. If you specify a network interface, you must specify any security groups as part of the network interface instead of using this parameter.
- List<Property Map>
- The tags to apply to the resources that are created during instance launch. To tag a resource after it has been created, see CreateTags. To tag the launch template itself, use TagSpecifications.
- user
Data String - The user data to make available to the instance. You must provide base64-encoded text. User data is limited to 16 KB. For more information, see Run commands on your Amazon EC2 instance at launch in the Amazon EC2 User Guide. If you are creating the launch template for use with BATCH, the user data must be provided in the MIME multi-part archive format. For more information, see Amazon EC2 user data in launch templates in the User Guide.
LaunchTemplateEbs, LaunchTemplateEbsArgs
- Delete
On boolTermination - Indicates whether the EBS volume is deleted on instance termination.
- Encrypted bool
- Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.
- Iops int
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. The following are the supported values for each volume type:gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System. On other instances, you can achieve performance up to 32,000 IOPS. This parameter is supported forio1
,io2
, andgp3
volumes only.- Kms
Key stringId - The ARN of the symmetric KMSlong (KMS) CMK used for encryption.
- Snapshot
Id string - The ID of the snapshot.
- Throughput int
- The throughput to provision for a
gp3
volume, with a maximum of 1,000 MiB/s. Valid Range: Minimum value of 125. Maximum value of 1000. - Volume
Size int - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. The following are the supported volumes sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- Volume
Type string - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide.
- Delete
On boolTermination - Indicates whether the EBS volume is deleted on instance termination.
- Encrypted bool
- Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.
- Iops int
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. The following are the supported values for each volume type:gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System. On other instances, you can achieve performance up to 32,000 IOPS. This parameter is supported forio1
,io2
, andgp3
volumes only.- Kms
Key stringId - The ARN of the symmetric KMSlong (KMS) CMK used for encryption.
- Snapshot
Id string - The ID of the snapshot.
- Throughput int
- The throughput to provision for a
gp3
volume, with a maximum of 1,000 MiB/s. Valid Range: Minimum value of 125. Maximum value of 1000. - Volume
Size int - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. The following are the supported volumes sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- Volume
Type string - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide.
- delete
On BooleanTermination - Indicates whether the EBS volume is deleted on instance termination.
- encrypted Boolean
- Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.
- iops Integer
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. The following are the supported values for each volume type:gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System. On other instances, you can achieve performance up to 32,000 IOPS. This parameter is supported forio1
,io2
, andgp3
volumes only.- kms
Key StringId - The ARN of the symmetric KMSlong (KMS) CMK used for encryption.
- snapshot
Id String - The ID of the snapshot.
- throughput Integer
- The throughput to provision for a
gp3
volume, with a maximum of 1,000 MiB/s. Valid Range: Minimum value of 125. Maximum value of 1000. - volume
Size Integer - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. The following are the supported volumes sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- volume
Type String - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide.
- delete
On booleanTermination - Indicates whether the EBS volume is deleted on instance termination.
- encrypted boolean
- Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.
- iops number
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. The following are the supported values for each volume type:gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System. On other instances, you can achieve performance up to 32,000 IOPS. This parameter is supported forio1
,io2
, andgp3
volumes only.- kms
Key stringId - The ARN of the symmetric KMSlong (KMS) CMK used for encryption.
- snapshot
Id string - The ID of the snapshot.
- throughput number
- The throughput to provision for a
gp3
volume, with a maximum of 1,000 MiB/s. Valid Range: Minimum value of 125. Maximum value of 1000. - volume
Size number - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. The following are the supported volumes sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- volume
Type string - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide.
- delete_
on_ booltermination - Indicates whether the EBS volume is deleted on instance termination.
- encrypted bool
- Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.
- iops int
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. The following are the supported values for each volume type:gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System. On other instances, you can achieve performance up to 32,000 IOPS. This parameter is supported forio1
,io2
, andgp3
volumes only.- kms_
key_ strid - The ARN of the symmetric KMSlong (KMS) CMK used for encryption.
- snapshot_
id str - The ID of the snapshot.
- throughput int
- The throughput to provision for a
gp3
volume, with a maximum of 1,000 MiB/s. Valid Range: Minimum value of 125. Maximum value of 1000. - volume_
size int - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. The following are the supported volumes sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- volume_
type str - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide.
- delete
On BooleanTermination - Indicates whether the EBS volume is deleted on instance termination.
- encrypted Boolean
- Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.
- iops Number
The number of I/O operations per second (IOPS). For
gp3
,io1
, andio2
volumes, this represents the number of IOPS that are provisioned for the volume. Forgp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting. The following are the supported values for each volume type:gp3
: 3,000 - 16,000 IOPSio1
: 100 - 64,000 IOPSio2
: 100 - 256,000 IOPS
For
io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System. On other instances, you can achieve performance up to 32,000 IOPS. This parameter is supported forio1
,io2
, andgp3
volumes only.- kms
Key StringId - The ARN of the symmetric KMSlong (KMS) CMK used for encryption.
- snapshot
Id String - The ID of the snapshot.
- throughput Number
- The throughput to provision for a
gp3
volume, with a maximum of 1,000 MiB/s. Valid Range: Minimum value of 125. Maximum value of 1000. - volume
Size Number - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. The following are the supported volumes sizes for each volume type:
gp2
andgp3
: 1 - 16,384 GiBio1
: 4 - 16,384 GiBio2
: 4 - 65,536 GiBst1
andsc1
: 125 - 16,384 GiBstandard
: 1 - 1024 GiB
- volume
Type String - The volume type. For more information, see Amazon EBS volume types in the Amazon EBS User Guide.
LaunchTemplateElasticGpuSpecification, LaunchTemplateElasticGpuSpecificationArgs
- Type string
- The type of Elastic Graphics accelerator.
- Type string
- The type of Elastic Graphics accelerator.
- type String
- The type of Elastic Graphics accelerator.
- type string
- The type of Elastic Graphics accelerator.
- type str
- The type of Elastic Graphics accelerator.
- type String
- The type of Elastic Graphics accelerator.
LaunchTemplateElasticInferenceAccelerator, LaunchTemplateElasticInferenceAcceleratorArgs
LaunchTemplateEnaSrdSpecification, LaunchTemplateEnaSrdSpecificationArgs
- Ena
Srd boolEnabled - Indicates whether ENA Express is enabled for the network interface.
- Ena
Srd Pulumi.Udp Specification Aws Native. Ec2. Inputs. Launch Template Ena Srd Udp Specification - Configures ENA Express for UDP network traffic.
- Ena
Srd boolEnabled - Indicates whether ENA Express is enabled for the network interface.
- Ena
Srd LaunchUdp Specification Template Ena Srd Udp Specification - Configures ENA Express for UDP network traffic.
- ena
Srd BooleanEnabled - Indicates whether ENA Express is enabled for the network interface.
- ena
Srd LaunchUdp Specification Template Ena Srd Udp Specification - Configures ENA Express for UDP network traffic.
- ena
Srd booleanEnabled - Indicates whether ENA Express is enabled for the network interface.
- ena
Srd LaunchUdp Specification Template Ena Srd Udp Specification - Configures ENA Express for UDP network traffic.
- ena_
srd_ boolenabled - Indicates whether ENA Express is enabled for the network interface.
- ena_
srd_ Launchudp_ specification Template Ena Srd Udp Specification - Configures ENA Express for UDP network traffic.
- ena
Srd BooleanEnabled - Indicates whether ENA Express is enabled for the network interface.
- ena
Srd Property MapUdp Specification - Configures ENA Express for UDP network traffic.
LaunchTemplateEnaSrdUdpSpecification, LaunchTemplateEnaSrdUdpSpecificationArgs
- Ena
Srd boolUdp Enabled - Indicates whether UDP traffic to and from the instance uses ENA Express. To specify this setting, you must first enable ENA Express.
- Ena
Srd boolUdp Enabled - Indicates whether UDP traffic to and from the instance uses ENA Express. To specify this setting, you must first enable ENA Express.
- ena
Srd BooleanUdp Enabled - Indicates whether UDP traffic to and from the instance uses ENA Express. To specify this setting, you must first enable ENA Express.
- ena
Srd booleanUdp Enabled - Indicates whether UDP traffic to and from the instance uses ENA Express. To specify this setting, you must first enable ENA Express.
- ena_
srd_ booludp_ enabled - Indicates whether UDP traffic to and from the instance uses ENA Express. To specify this setting, you must first enable ENA Express.
- ena
Srd BooleanUdp Enabled - Indicates whether UDP traffic to and from the instance uses ENA Express. To specify this setting, you must first enable ENA Express.
LaunchTemplateEnclaveOptions, LaunchTemplateEnclaveOptionsArgs
- Enabled bool
- If this parameter is set to
true
, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.
- Enabled bool
- If this parameter is set to
true
, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.
- enabled Boolean
- If this parameter is set to
true
, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.
- enabled boolean
- If this parameter is set to
true
, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.
- enabled bool
- If this parameter is set to
true
, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.
- enabled Boolean
- If this parameter is set to
true
, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.
LaunchTemplateHibernationOptions, LaunchTemplateHibernationOptionsArgs
- Configured bool
- If you set this parameter to
true
, the instance is enabled for hibernation. Default:false
- Configured bool
- If you set this parameter to
true
, the instance is enabled for hibernation. Default:false
- configured Boolean
- If you set this parameter to
true
, the instance is enabled for hibernation. Default:false
- configured boolean
- If you set this parameter to
true
, the instance is enabled for hibernation. Default:false
- configured bool
- If you set this parameter to
true
, the instance is enabled for hibernation. Default:false
- configured Boolean
- If you set this parameter to
true
, the instance is enabled for hibernation. Default:false
LaunchTemplateIamInstanceProfile, LaunchTemplateIamInstanceProfileArgs
LaunchTemplateInstanceMarketOptions, LaunchTemplateInstanceMarketOptionsArgs
- Market
Type string - The market type.
- Spot
Options Pulumi.Aws Native. Ec2. Inputs. Launch Template Spot Options - The options for Spot Instances.
- Market
Type string - The market type.
- Spot
Options LaunchTemplate Spot Options - The options for Spot Instances.
- market
Type String - The market type.
- spot
Options LaunchTemplate Spot Options - The options for Spot Instances.
- market
Type string - The market type.
- spot
Options LaunchTemplate Spot Options - The options for Spot Instances.
- market_
type str - The market type.
- spot_
options LaunchTemplate Spot Options - The options for Spot Instances.
- market
Type String - The market type.
- spot
Options Property Map - The options for Spot Instances.
LaunchTemplateInstanceRequirements, LaunchTemplateInstanceRequirementsArgs
- Accelerator
Count Pulumi.Aws Native. Ec2. Inputs. Launch Template Accelerator Count - The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
. Default: No minimum or maximum limits - Accelerator
Manufacturers List<string> Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- Accelerator
Names List<string> The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- Accelerator
Total Pulumi.Memory Mi B Aws Native. Ec2. Inputs. Launch Template Accelerator Total Memory Mi B - The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
- Accelerator
Types List<string> The accelerator types that must be on the instance type.
- For instance types with GPU accelerators, specify
gpu
. - For instance types with FPGA accelerators, specify
fpga
. - For instance types with inference accelerators, specify
inference
.
Default: Any accelerator type
- For instance types with GPU accelerators, specify
- Allowed
Instance List<string>Types - The 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*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. If you specifyAllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
. Default: All instance types - Bare
Metal string Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- Baseline
Ebs Pulumi.Bandwidth Mbps Aws Native. Ec2. Inputs. Launch Template Baseline Ebs Bandwidth Mbps - The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide. Default: No minimum or maximum limits
- Burstable
Performance string Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances.
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- Cpu
Manufacturers List<string> The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template. Default: Any manufacturer
- For instance types with Intel CPUs, specify
- Excluded
Instance List<string>Types - The 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*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types. If you specifyExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
. Default: No excluded instance types - Instance
Generations List<string> - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide.
For current generation instance types, specify
current
. For previous generation instance types, specifyprevious
. Default: Current and previous generation instance types - Local
Storage string Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide.
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- Local
Storage List<string>Types The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- Max
Spot intPrice As Percentage Of Optimal On Demand Price - [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. - Memory
Gi Pulumi.BPer VCpu Aws Native. Ec2. Inputs. Launch Template Memory Gi BPer VCpu - The minimum and maximum amount of memory per vCPU, in GiB. Default: No minimum or maximum limits
- Memory
Mi Pulumi.B Aws Native. Ec2. Inputs. Launch Template Memory Mi B - The minimum and maximum amount of memory, in MiB.
- Network
Bandwidth Pulumi.Gbps Aws Native. Ec2. Inputs. Launch Template Network Bandwidth Gbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default: No minimum or maximum limits
- Network
Interface Pulumi.Count Aws Native. Ec2. Inputs. Launch Template Network Interface Count - The minimum and maximum number of network interfaces. Default: No minimum or maximum limits
- On
Demand intMax Price Percentage Over Lowest Price - [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To turn off price protection, specify a high value, such as
999999
. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. If you setTargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. Default:20
- Require
Hibernate boolSupport - Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores.
Default:
false
- Spot
Max intPrice Percentage Over Lowest Price - [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. Default:100
- Total
Local Pulumi.Storage Gb Aws Native. Ec2. Inputs. Launch Template Total Local Storage Gb - The minimum and maximum amount of total local storage, in GB. Default: No minimum or maximum limits
- VCpu
Count Pulumi.Aws Native. Ec2. Inputs. Launch Template VCpu Count - The minimum and maximum number of vCPUs.
- Accelerator
Count LaunchTemplate Accelerator Count - The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
. Default: No minimum or maximum limits - Accelerator
Manufacturers []string Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- Accelerator
Names []string The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- Accelerator
Total LaunchMemory Mi B Template Accelerator Total Memory Mi B - The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
- Accelerator
Types []string The accelerator types that must be on the instance type.
- For instance types with GPU accelerators, specify
gpu
. - For instance types with FPGA accelerators, specify
fpga
. - For instance types with inference accelerators, specify
inference
.
Default: Any accelerator type
- For instance types with GPU accelerators, specify
- Allowed
Instance []stringTypes - The 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*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. If you specifyAllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
. Default: All instance types - Bare
Metal string Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- Baseline
Ebs LaunchBandwidth Mbps Template Baseline Ebs Bandwidth Mbps - The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide. Default: No minimum or maximum limits
- Burstable
Performance string Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances.
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- Cpu
Manufacturers []string The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template. Default: Any manufacturer
- For instance types with Intel CPUs, specify
- Excluded
Instance []stringTypes - The 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*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types. If you specifyExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
. Default: No excluded instance types - Instance
Generations []string - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide.
For current generation instance types, specify
current
. For previous generation instance types, specifyprevious
. Default: Current and previous generation instance types - Local
Storage string Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide.
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- Local
Storage []stringTypes The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- Max
Spot intPrice As Percentage Of Optimal On Demand Price - [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. - Memory
Gi LaunchBPer VCpu Template Memory Gi BPer VCpu - The minimum and maximum amount of memory per vCPU, in GiB. Default: No minimum or maximum limits
- Memory
Mi LaunchB Template Memory Mi B - The minimum and maximum amount of memory, in MiB.
- Network
Bandwidth LaunchGbps Template Network Bandwidth Gbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default: No minimum or maximum limits
- Network
Interface LaunchCount Template Network Interface Count - The minimum and maximum number of network interfaces. Default: No minimum or maximum limits
- On
Demand intMax Price Percentage Over Lowest Price - [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To turn off price protection, specify a high value, such as
999999
. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. If you setTargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. Default:20
- Require
Hibernate boolSupport - Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores.
Default:
false
- Spot
Max intPrice Percentage Over Lowest Price - [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. Default:100
- Total
Local LaunchStorage Gb Template Total Local Storage Gb - The minimum and maximum amount of total local storage, in GB. Default: No minimum or maximum limits
- VCpu
Count LaunchTemplate VCpu Count - The minimum and maximum number of vCPUs.
- accelerator
Count LaunchTemplate Accelerator Count - The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
. Default: No minimum or maximum limits - accelerator
Manufacturers List<String> Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- accelerator
Names List<String> The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- accelerator
Total LaunchMemory Mi B Template Accelerator Total Memory Mi B - The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
- accelerator
Types List<String> The accelerator types that must be on the instance type.
- For instance types with GPU accelerators, specify
gpu
. - For instance types with FPGA accelerators, specify
fpga
. - For instance types with inference accelerators, specify
inference
.
Default: Any accelerator type
- For instance types with GPU accelerators, specify
- allowed
Instance List<String>Types - The 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*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. If you specifyAllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
. Default: All instance types - bare
Metal String Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- baseline
Ebs LaunchBandwidth Mbps Template Baseline Ebs Bandwidth Mbps - The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide. Default: No minimum or maximum limits
- burstable
Performance String Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances.
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- cpu
Manufacturers List<String> The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template. Default: Any manufacturer
- For instance types with Intel CPUs, specify
- excluded
Instance List<String>Types - The 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*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types. If you specifyExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
. Default: No excluded instance types - instance
Generations List<String> - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide.
For current generation instance types, specify
current
. For previous generation instance types, specifyprevious
. Default: Current and previous generation instance types - local
Storage String Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide.
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- local
Storage List<String>Types The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- max
Spot IntegerPrice As Percentage Of Optimal On Demand Price - [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. - memory
Gi LaunchBPer VCpu Template Memory Gi BPer VCpu - The minimum and maximum amount of memory per vCPU, in GiB. Default: No minimum or maximum limits
- memory
Mi LaunchB Template Memory Mi B - The minimum and maximum amount of memory, in MiB.
- network
Bandwidth LaunchGbps Template Network Bandwidth Gbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default: No minimum or maximum limits
- network
Interface LaunchCount Template Network Interface Count - The minimum and maximum number of network interfaces. Default: No minimum or maximum limits
- on
Demand IntegerMax Price Percentage Over Lowest Price - [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To turn off price protection, specify a high value, such as
999999
. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. If you setTargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. Default:20
- require
Hibernate BooleanSupport - Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores.
Default:
false
- spot
Max IntegerPrice Percentage Over Lowest Price - [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. Default:100
- total
Local LaunchStorage Gb Template Total Local Storage Gb - The minimum and maximum amount of total local storage, in GB. Default: No minimum or maximum limits
- v
Cpu LaunchCount Template VCpu Count - The minimum and maximum number of vCPUs.
- accelerator
Count LaunchTemplate Accelerator Count - The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
. Default: No minimum or maximum limits - accelerator
Manufacturers string[] Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- accelerator
Names string[] The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- accelerator
Total LaunchMemory Mi B Template Accelerator Total Memory Mi B - The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
- accelerator
Types string[] The accelerator types that must be on the instance type.
- For instance types with GPU accelerators, specify
gpu
. - For instance types with FPGA accelerators, specify
fpga
. - For instance types with inference accelerators, specify
inference
.
Default: Any accelerator type
- For instance types with GPU accelerators, specify
- allowed
Instance string[]Types - The 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*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. If you specifyAllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
. Default: All instance types - bare
Metal string Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- baseline
Ebs LaunchBandwidth Mbps Template Baseline Ebs Bandwidth Mbps - The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide. Default: No minimum or maximum limits
- burstable
Performance string Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances.
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- cpu
Manufacturers string[] The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template. Default: Any manufacturer
- For instance types with Intel CPUs, specify
- excluded
Instance string[]Types - The 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*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types. If you specifyExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
. Default: No excluded instance types - instance
Generations string[] - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide.
For current generation instance types, specify
current
. For previous generation instance types, specifyprevious
. Default: Current and previous generation instance types - local
Storage string Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide.
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- local
Storage string[]Types The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- max
Spot numberPrice As Percentage Of Optimal On Demand Price - [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. - memory
Gi LaunchBPer VCpu Template Memory Gi BPer VCpu - The minimum and maximum amount of memory per vCPU, in GiB. Default: No minimum or maximum limits
- memory
Mi LaunchB Template Memory Mi B - The minimum and maximum amount of memory, in MiB.
- network
Bandwidth LaunchGbps Template Network Bandwidth Gbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default: No minimum or maximum limits
- network
Interface LaunchCount Template Network Interface Count - The minimum and maximum number of network interfaces. Default: No minimum or maximum limits
- on
Demand numberMax Price Percentage Over Lowest Price - [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To turn off price protection, specify a high value, such as
999999
. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. If you setTargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. Default:20
- require
Hibernate booleanSupport - Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores.
Default:
false
- spot
Max numberPrice Percentage Over Lowest Price - [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. Default:100
- total
Local LaunchStorage Gb Template Total Local Storage Gb - The minimum and maximum amount of total local storage, in GB. Default: No minimum or maximum limits
- v
Cpu LaunchCount Template VCpu Count - The minimum and maximum number of vCPUs.
- accelerator_
count LaunchTemplate Accelerator Count - The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
. Default: No minimum or maximum limits - accelerator_
manufacturers Sequence[str] Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- accelerator_
names Sequence[str] The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- accelerator_
total_ Launchmemory_ mi_ b Template Accelerator Total Memory Mi B - The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
- accelerator_
types Sequence[str] The accelerator types that must be on the instance type.
- For instance types with GPU accelerators, specify
gpu
. - For instance types with FPGA accelerators, specify
fpga
. - For instance types with inference accelerators, specify
inference
.
Default: Any accelerator type
- For instance types with GPU accelerators, specify
- allowed_
instance_ Sequence[str]types - The 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*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. If you specifyAllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
. Default: All instance types - bare_
metal str Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- baseline_
ebs_ Launchbandwidth_ mbps Template Baseline Ebs Bandwidth Mbps - The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide. Default: No minimum or maximum limits
- burstable_
performance str Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances.
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- cpu_
manufacturers Sequence[str] The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template. Default: Any manufacturer
- For instance types with Intel CPUs, specify
- excluded_
instance_ Sequence[str]types - The 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*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types. If you specifyExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
. Default: No excluded instance types - instance_
generations Sequence[str] - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide.
For current generation instance types, specify
current
. For previous generation instance types, specifyprevious
. Default: Current and previous generation instance types - local_
storage str Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide.
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- local_
storage_ Sequence[str]types The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- max_
spot_ intprice_ as_ percentage_ of_ optimal_ on_ demand_ price - [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. - memory_
gi_ Launchb_ per_ v_ cpu Template Memory Gi BPer VCpu - The minimum and maximum amount of memory per vCPU, in GiB. Default: No minimum or maximum limits
- memory_
mi_ Launchb Template Memory Mi B - The minimum and maximum amount of memory, in MiB.
- network_
bandwidth_ Launchgbps Template Network Bandwidth Gbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default: No minimum or maximum limits
- network_
interface_ Launchcount Template Network Interface Count - The minimum and maximum number of network interfaces. Default: No minimum or maximum limits
- on_
demand_ intmax_ price_ percentage_ over_ lowest_ price - [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To turn off price protection, specify a high value, such as
999999
. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. If you setTargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. Default:20
- require_
hibernate_ boolsupport - Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores.
Default:
false
- spot_
max_ intprice_ percentage_ over_ lowest_ price - [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. Default:100
- total_
local_ Launchstorage_ gb Template Total Local Storage Gb - The minimum and maximum amount of total local storage, in GB. Default: No minimum or maximum limits
- v_
cpu_ Launchcount Template VCpu Count - The minimum and maximum number of vCPUs.
- accelerator
Count Property Map - The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set
Max
to0
. Default: No minimum or maximum limits - accelerator
Manufacturers List<String> Indicates whether instance types must have accelerators by specific manufacturers.
- For instance types with AWS devices, specify
amazon-web-services
. - For instance types with AMD devices, specify
amd
. - For instance types with Habana devices, specify
habana
. - For instance types with NVIDIA devices, specify
nvidia
. - For instance types with Xilinx devices, specify
xilinx
.
Default: Any manufacturer
- For instance types with AWS devices, specify
- accelerator
Names List<String> The accelerators that must be on the instance type.
- For instance types with NVIDIA A10G GPUs, specify
a10g
. - For instance types with NVIDIA A100 GPUs, specify
a100
. - For instance types with NVIDIA H100 GPUs, specify
h100
. - For instance types with AWS Inferentia chips, specify
inferentia
. - For instance types with NVIDIA GRID K520 GPUs, specify
k520
. - For instance types with NVIDIA K80 GPUs, specify
k80
. - For instance types with NVIDIA M60 GPUs, specify
m60
. - For instance types with AMD Radeon Pro V520 GPUs, specify
radeon-pro-v520
. - For instance types with NVIDIA T4 GPUs, specify
t4
. - For instance types with NVIDIA T4G GPUs, specify
t4g
. - For instance types with Xilinx VU9P FPGAs, specify
vu9p
. - For instance types with NVIDIA V100 GPUs, specify
v100
.
Default: Any accelerator
- For instance types with NVIDIA A10G GPUs, specify
- accelerator
Total Property MapMemory Mi B - The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
- accelerator
Types List<String> The accelerator types that must be on the instance type.
- For instance types with GPU accelerators, specify
gpu
. - For instance types with FPGA accelerators, specify
fpga
. - For instance types with inference accelerators, specify
inference
.
Default: Any accelerator type
- For instance types with GPU accelerators, specify
- allowed
Instance List<String>Types - The 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*
,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. If you specifyAllowedInstanceTypes
, you can't specifyExcludedInstanceTypes
. Default: All instance types - bare
Metal String Indicates whether bare metal instance types must be included, excluded, or required.
- To include bare metal instance types, specify
included
. - To require only bare metal instance types, specify
required
. - To exclude bare metal instance types, specify
excluded
.
Default:
excluded
- To include bare metal instance types, specify
- baseline
Ebs Property MapBandwidth Mbps - The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide. Default: No minimum or maximum limits
- burstable
Performance String Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances.
- To include burstable performance instance types, specify
included
. - To require only burstable performance instance types, specify
required
. - To exclude burstable performance instance types, specify
excluded
.
Default:
excluded
- To include burstable performance instance types, specify
- cpu
Manufacturers List<String> The CPU manufacturers to include.
- For instance types with Intel CPUs, specify
intel
. - For instance types with AMD CPUs, specify
amd
. - For instance types with AWS CPUs, specify
amazon-web-services
.
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template. Default: Any manufacturer
- For instance types with Intel CPUs, specify
- excluded
Instance List<String>Types - The 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*
,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specifym5a.*
, Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types. If you specifyExcludedInstanceTypes
, you can't specifyAllowedInstanceTypes
. Default: No excluded instance types - instance
Generations List<String> - Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide.
For current generation instance types, specify
current
. For previous generation instance types, specifyprevious
. Default: Current and previous generation instance types - local
Storage String Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, Amazon EC2 instance store in the Amazon EC2 User Guide.
- To include instance types with instance store volumes, specify
included
. - To require only instance types with instance store volumes, specify
required
. - To exclude instance types with instance store volumes, specify
excluded
.
Default:
included
- To include instance types with instance store volumes, specify
- local
Storage List<String>Types The type of local storage that is required.
- For instance types with hard disk drive (HDD) storage, specify
hdd
. - For instance types with solid state drive (SSD) storage, specify
ssd
.
Default:
hdd
andssd
- For instance types with hard disk drive (HDD) storage, specify
- max
Spot NumberPrice As Percentage Of Optimal On Demand Price - [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is based on the per vCPU or per memory price instead of the per instance price. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. - memory
Gi Property MapBPer VCpu - The minimum and maximum amount of memory per vCPU, in GiB. Default: No minimum or maximum limits
- memory
Mi Property MapB - The minimum and maximum amount of memory, in MiB.
- network
Bandwidth Property MapGbps - The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default: No minimum or maximum limits
- network
Interface Property MapCount - The minimum and maximum number of network interfaces. Default: No minimum or maximum limits
- on
Demand NumberMax Price Percentage Over Lowest Price - [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To turn off price protection, specify a high value, such as
999999
. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. If you setTargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. Default:20
- require
Hibernate BooleanSupport - Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores.
Default:
false
- spot
Max NumberPrice Percentage Over Lowest Price - [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the Spot price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
If you set
TargetCapacityUnitType
tovcpu
ormemory-mib
, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price. This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements. Only one ofSpotMaxPricePercentageOverLowestPrice
orMaxSpotPriceAsPercentageOfOptimalOnDemandPrice
can be specified. If you don't specify either, Amazon EC2 will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as999999
. Default:100
- total
Local Property MapStorage Gb - The minimum and maximum amount of total local storage, in GB. Default: No minimum or maximum limits
- v
Cpu Property MapCount - The minimum and maximum number of vCPUs.
LaunchTemplateIpv4PrefixSpecification, LaunchTemplateIpv4PrefixSpecificationArgs
- Ipv4Prefix string
- The IPv4 prefix. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.
- Ipv4Prefix string
- The IPv4 prefix. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.
- ipv4Prefix String
- The IPv4 prefix. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.
- ipv4Prefix string
- The IPv4 prefix. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.
- ipv4_
prefix str - The IPv4 prefix. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.
- ipv4Prefix String
- The IPv4 prefix. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.
LaunchTemplateIpv6Add, LaunchTemplateIpv6AddArgs
- Ipv6Address string
- One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- Ipv6Address string
- One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- ipv6Address String
- One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- ipv6Address string
- One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- ipv6_
address str - One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- ipv6Address String
- One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
LaunchTemplateIpv6PrefixSpecification, LaunchTemplateIpv6PrefixSpecificationArgs
- Ipv6Prefix string
- The IPv6 prefix.
- Ipv6Prefix string
- The IPv6 prefix.
- ipv6Prefix String
- The IPv6 prefix.
- ipv6Prefix string
- The IPv6 prefix.
- ipv6_
prefix str - The IPv6 prefix.
- ipv6Prefix String
- The IPv6 prefix.
LaunchTemplateLicenseSpecification, LaunchTemplateLicenseSpecificationArgs
- License
Configuration stringArn - The Amazon Resource Name (ARN) of the license configuration.
- License
Configuration stringArn - The Amazon Resource Name (ARN) of the license configuration.
- license
Configuration StringArn - The Amazon Resource Name (ARN) of the license configuration.
- license
Configuration stringArn - The Amazon Resource Name (ARN) of the license configuration.
- license_
configuration_ strarn - The Amazon Resource Name (ARN) of the license configuration.
- license
Configuration StringArn - The Amazon Resource Name (ARN) of the license configuration.
LaunchTemplateMaintenanceOptions, LaunchTemplateMaintenanceOptionsArgs
- Auto
Recovery string - Disables the automatic recovery behavior of your instance or sets it to default.
- Auto
Recovery string - Disables the automatic recovery behavior of your instance or sets it to default.
- auto
Recovery String - Disables the automatic recovery behavior of your instance or sets it to default.
- auto
Recovery string - Disables the automatic recovery behavior of your instance or sets it to default.
- auto_
recovery str - Disables the automatic recovery behavior of your instance or sets it to default.
- auto
Recovery String - Disables the automatic recovery behavior of your instance or sets it to default.
LaunchTemplateMemoryGiBPerVCpu, LaunchTemplateMemoryGiBPerVCpuArgs
LaunchTemplateMemoryMiB, LaunchTemplateMemoryMiBArgs
LaunchTemplateMetadataOptions, LaunchTemplateMetadataOptionsArgs
- Http
Endpoint string - Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default state is
enabled
. If you specify a value ofdisabled
, you will not be able to access your instance metadata. - Http
Protocol stringIpv6 - Enables or disables the IPv6 endpoint for the instance metadata service.
Default:
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.
Default:
1
Possible values: Integers from 1 to 64 - Http
Tokens string Indicates whether IMDSv2 is required.
optional
- IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.required
- IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.
Default: If the value of
ImdsSupport
for the Amazon Machine Image (AMI) for your instance isv2.0
, the default isrequired
.- string
- Set to
enabled
to allow access to instance tags from the instance metadata. Set todisabled
to turn off access to instance tags from the instance metadata. For more information, see Work with instance tags using the instance metadata. Default:disabled
- Http
Endpoint string - Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default state is
enabled
. If you specify a value ofdisabled
, you will not be able to access your instance metadata. - Http
Protocol stringIpv6 - Enables or disables the IPv6 endpoint for the instance metadata service.
Default:
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.
Default:
1
Possible values: Integers from 1 to 64 - Http
Tokens string Indicates whether IMDSv2 is required.
optional
- IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.required
- IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.
Default: If the value of
ImdsSupport
for the Amazon Machine Image (AMI) for your instance isv2.0
, the default isrequired
.- string
- Set to
enabled
to allow access to instance tags from the instance metadata. Set todisabled
to turn off access to instance tags from the instance metadata. For more information, see Work with instance tags using the instance metadata. Default:disabled
- http
Endpoint String - Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default state is
enabled
. If you specify a value ofdisabled
, you will not be able to access your instance metadata. - http
Protocol StringIpv6 - Enables or disables the IPv6 endpoint for the instance metadata service.
Default:
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.
Default:
1
Possible values: Integers from 1 to 64 - http
Tokens String Indicates whether IMDSv2 is required.
optional
- IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.required
- IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.
Default: If the value of
ImdsSupport
for the Amazon Machine Image (AMI) for your instance isv2.0
, the default isrequired
.- String
- Set to
enabled
to allow access to instance tags from the instance metadata. Set todisabled
to turn off access to instance tags from the instance metadata. For more information, see Work with instance tags using the instance metadata. Default:disabled
- http
Endpoint string - Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default state is
enabled
. If you specify a value ofdisabled
, you will not be able to access your instance metadata. - http
Protocol stringIpv6 - Enables or disables the IPv6 endpoint for the instance metadata service.
Default:
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.
Default:
1
Possible values: Integers from 1 to 64 - http
Tokens string Indicates whether IMDSv2 is required.
optional
- IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.required
- IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.
Default: If the value of
ImdsSupport
for the Amazon Machine Image (AMI) for your instance isv2.0
, the default isrequired
.- string
- Set to
enabled
to allow access to instance tags from the instance metadata. Set todisabled
to turn off access to instance tags from the instance metadata. For more information, see Work with instance tags using the instance metadata. Default:disabled
- http_
endpoint str - Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default state is
enabled
. If you specify a value ofdisabled
, you will not be able to access your instance metadata. - http_
protocol_ stripv6 - Enables or disables the IPv6 endpoint for the instance metadata service.
Default:
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.
Default:
1
Possible values: Integers from 1 to 64 - http_
tokens str Indicates whether IMDSv2 is required.
optional
- IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.required
- IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.
Default: If the value of
ImdsSupport
for the Amazon Machine Image (AMI) for your instance isv2.0
, the default isrequired
.- str
- Set to
enabled
to allow access to instance tags from the instance metadata. Set todisabled
to turn off access to instance tags from the instance metadata. For more information, see Work with instance tags using the instance metadata. Default:disabled
- http
Endpoint String - Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not specified, the default state is
enabled
. If you specify a value ofdisabled
, you will not be able to access your instance metadata. - http
Protocol StringIpv6 - Enables or disables the IPv6 endpoint for the instance metadata service.
Default:
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.
Default:
1
Possible values: Integers from 1 to 64 - http
Tokens String Indicates whether IMDSv2 is required.
optional
- IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.required
- IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.
Default: If the value of
ImdsSupport
for the Amazon Machine Image (AMI) for your instance isv2.0
, the default isrequired
.- String
- Set to
enabled
to allow access to instance tags from the instance metadata. Set todisabled
to turn off access to instance tags from the instance metadata. For more information, see Work with instance tags using the instance metadata. Default:disabled
LaunchTemplateMonitoring, LaunchTemplateMonitoringArgs
- Enabled bool
- Specify
true
to enable detailed monitoring. Otherwise, basic monitoring is enabled.
- Enabled bool
- Specify
true
to enable detailed monitoring. Otherwise, basic monitoring is enabled.
- enabled Boolean
- Specify
true
to enable detailed monitoring. Otherwise, basic monitoring is enabled.
- enabled boolean
- Specify
true
to enable detailed monitoring. Otherwise, basic monitoring is enabled.
- enabled bool
- Specify
true
to enable detailed monitoring. Otherwise, basic monitoring is enabled.
- enabled Boolean
- Specify
true
to enable detailed monitoring. Otherwise, basic monitoring is enabled.
LaunchTemplateNetworkBandwidthGbps, LaunchTemplateNetworkBandwidthGbpsArgs
LaunchTemplateNetworkInterface, LaunchTemplateNetworkInterfaceArgs
- Associate
Carrier boolIp Address - Associates 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. For more information about Carrier IP addresses, see Carrier IP addresses in the Developer Guide.
- Associate
Public boolIp Address - Associates a public IPv4 address with eth0 for a new network interface. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
- Connection
Tracking Pulumi.Specification Aws Native. Ec2. Inputs. Launch Template Connection Tracking Specification - A connection tracking specification for the network interface.
- Delete
On boolTermination - Indicates whether the network interface is deleted when the instance is terminated.
- Description string
- A description for the network interface.
- Device
Index int - The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
- Ena
Srd Pulumi.Specification Aws Native. Ec2. Inputs. Launch Template Ena Srd Specification - The ENA Express configuration for the network interface.
- Groups List<string>
- The IDs of one or more security groups.
- Interface
Type string - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. For more information, see Elastic Fabric Adapter in the Amazon EC2 User Guide. If you are not creating an EFA, specifyinterface
or omit this parameter. Valid values:interface
|efa
- Ipv4Prefix
Count int - The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv4Prefix
option. - Ipv4Prefixes
List<Pulumi.
Aws Native. Ec2. Inputs. Launch Template Ipv4Prefix Specification> - One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option. - Ipv6Address
Count int - The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
- Ipv6Addresses
List<Pulumi.
Aws Native. Ec2. Inputs. Launch Template Ipv6Add> - One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- Ipv6Prefix
Count int - The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv6Prefix
option. - Ipv6Prefixes
List<Pulumi.
Aws Native. Ec2. Inputs. Launch Template Ipv6Prefix Specification> - One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option. - 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.
- Primary
Ipv6 bool - The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
- Private
Ip stringAddress - The primary private IPv4 address of the network interface.
- Private
Ip List<Pulumi.Addresses Aws Native. Ec2. Inputs. Launch Template Private Ip Add> - One or more private IPv4 addresses.
- Secondary
Private intIp Address Count - The number of secondary private IPv4 addresses to assign to a network interface.
- Subnet
Id string - The ID of the subnet for the network interface.
- Associate
Carrier boolIp Address - Associates 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. For more information about Carrier IP addresses, see Carrier IP addresses in the Developer Guide.
- Associate
Public boolIp Address - Associates a public IPv4 address with eth0 for a new network interface. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
- Connection
Tracking LaunchSpecification Template Connection Tracking Specification - A connection tracking specification for the network interface.
- Delete
On boolTermination - Indicates whether the network interface is deleted when the instance is terminated.
- Description string
- A description for the network interface.
- Device
Index int - The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
- Ena
Srd LaunchSpecification Template Ena Srd Specification - The ENA Express configuration for the network interface.
- Groups []string
- The IDs of one or more security groups.
- Interface
Type string - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. For more information, see Elastic Fabric Adapter in the Amazon EC2 User Guide. If you are not creating an EFA, specifyinterface
or omit this parameter. Valid values:interface
|efa
- Ipv4Prefix
Count int - The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv4Prefix
option. - Ipv4Prefixes
[]Launch
Template Ipv4Prefix Specification - One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option. - Ipv6Address
Count int - The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
- Ipv6Addresses
[]Launch
Template Ipv6Add - One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- Ipv6Prefix
Count int - The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv6Prefix
option. - Ipv6Prefixes
[]Launch
Template Ipv6Prefix Specification - One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option. - 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.
- Primary
Ipv6 bool - The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
- Private
Ip stringAddress - The primary private IPv4 address of the network interface.
- Private
Ip []LaunchAddresses Template Private Ip Add - One or more private IPv4 addresses.
- Secondary
Private intIp Address Count - The number of secondary private IPv4 addresses to assign to a network interface.
- Subnet
Id string - The ID of the subnet for the network interface.
- associate
Carrier BooleanIp Address - Associates 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. For more information about Carrier IP addresses, see Carrier IP addresses in the Developer Guide.
- associate
Public BooleanIp Address - Associates a public IPv4 address with eth0 for a new network interface. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
- connection
Tracking LaunchSpecification Template Connection Tracking Specification - A connection tracking specification for the network interface.
- delete
On BooleanTermination - Indicates whether the network interface is deleted when the instance is terminated.
- description String
- A description for the network interface.
- device
Index Integer - The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
- ena
Srd LaunchSpecification Template Ena Srd Specification - The ENA Express configuration for the network interface.
- groups List<String>
- The IDs of one or more security groups.
- interface
Type String - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. For more information, see Elastic Fabric Adapter in the Amazon EC2 User Guide. If you are not creating an EFA, specifyinterface
or omit this parameter. Valid values:interface
|efa
- ipv4Prefix
Count Integer - The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv4Prefix
option. - ipv4Prefixes
List<Launch
Template Ipv4Prefix Specification> - One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option. - ipv6Address
Count Integer - The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
- ipv6Addresses
List<Launch
Template Ipv6Add> - One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- ipv6Prefix
Count Integer - The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv6Prefix
option. - ipv6Prefixes
List<Launch
Template Ipv6Prefix Specification> - One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option. - 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.
- primary
Ipv6 Boolean - The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
- private
Ip StringAddress - The primary private IPv4 address of the network interface.
- private
Ip List<LaunchAddresses Template Private Ip Add> - One or more private IPv4 addresses.
- secondary
Private IntegerIp Address Count - The number of secondary private IPv4 addresses to assign to a network interface.
- subnet
Id String - The ID of the subnet for the network interface.
- associate
Carrier booleanIp Address - Associates 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. For more information about Carrier IP addresses, see Carrier IP addresses in the Developer Guide.
- associate
Public booleanIp Address - Associates a public IPv4 address with eth0 for a new network interface. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
- connection
Tracking LaunchSpecification Template Connection Tracking Specification - A connection tracking specification for the network interface.
- delete
On booleanTermination - Indicates whether the network interface is deleted when the instance is terminated.
- description string
- A description for the network interface.
- device
Index number - The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
- ena
Srd LaunchSpecification Template Ena Srd Specification - The ENA Express configuration for the network interface.
- groups string[]
- The IDs of one or more security groups.
- interface
Type string - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. For more information, see Elastic Fabric Adapter in the Amazon EC2 User Guide. If you are not creating an EFA, specifyinterface
or omit this parameter. Valid values:interface
|efa
- ipv4Prefix
Count number - The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv4Prefix
option. - ipv4Prefixes
Launch
Template Ipv4Prefix Specification[] - One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option. - ipv6Address
Count number - The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
- ipv6Addresses
Launch
Template Ipv6Add[] - One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- ipv6Prefix
Count number - The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv6Prefix
option. - ipv6Prefixes
Launch
Template Ipv6Prefix Specification[] - One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option. - 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.
- primary
Ipv6 boolean - The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
- private
Ip stringAddress - The primary private IPv4 address of the network interface.
- private
Ip LaunchAddresses Template Private Ip Add[] - One or more private IPv4 addresses.
- secondary
Private numberIp Address Count - The number of secondary private IPv4 addresses to assign to a network interface.
- subnet
Id string - The ID of the subnet for the network interface.
- associate_
carrier_ boolip_ address - Associates 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. For more information about Carrier IP addresses, see Carrier IP addresses in the Developer Guide.
- associate_
public_ boolip_ address - Associates a public IPv4 address with eth0 for a new network interface. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
- connection_
tracking_ Launchspecification Template Connection Tracking Specification - A connection tracking specification for the network interface.
- delete_
on_ booltermination - Indicates whether the network interface is deleted when the instance is terminated.
- description str
- A description for the network interface.
- device_
index int - The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
- ena_
srd_ Launchspecification Template Ena Srd Specification - The ENA Express configuration for the network interface.
- groups Sequence[str]
- The IDs of one or more security groups.
- interface_
type str - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. For more information, see Elastic Fabric Adapter in the Amazon EC2 User Guide. If you are not creating an EFA, specifyinterface
or omit this parameter. Valid values:interface
|efa
- ipv4_
prefix_ intcount - The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv4Prefix
option. - ipv4_
prefixes Sequence[LaunchTemplate Ipv4Prefix Specification] - One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option. - ipv6_
address_ intcount - The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
- ipv6_
addresses Sequence[LaunchTemplate Ipv6Add] - One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- ipv6_
prefix_ intcount - The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv6Prefix
option. - ipv6_
prefixes Sequence[LaunchTemplate Ipv6Prefix Specification] - One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option. - 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.
- primary_
ipv6 bool - The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
- private_
ip_ straddress - The primary private IPv4 address of the network interface.
- private_
ip_ Sequence[Launchaddresses Template Private Ip Add] - One or more private IPv4 addresses.
- secondary_
private_ intip_ address_ count - The number of secondary private IPv4 addresses to assign to a network interface.
- subnet_
id str - The ID of the subnet for the network interface.
- associate
Carrier BooleanIp Address - Associates 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. For more information about Carrier IP addresses, see Carrier IP addresses in the Developer Guide.
- associate
Public BooleanIp Address - Associates a public IPv4 address with eth0 for a new network interface. AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
- connection
Tracking Property MapSpecification - A connection tracking specification for the network interface.
- delete
On BooleanTermination - Indicates whether the network interface is deleted when the instance is terminated.
- description String
- A description for the network interface.
- device
Index Number - The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
- ena
Srd Property MapSpecification - The ENA Express configuration for the network interface.
- groups List<String>
- The IDs of one or more security groups.
- interface
Type String - The type of network interface. To create an Elastic Fabric Adapter (EFA), specify
efa
. For more information, see Elastic Fabric Adapter in the Amazon EC2 User Guide. If you are not creating an EFA, specifyinterface
or omit this parameter. Valid values:interface
|efa
- ipv4Prefix
Count Number - The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv4Prefix
option. - ipv4Prefixes List<Property Map>
- One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option. - ipv6Address
Count Number - The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
- ipv6Addresses List<Property Map>
- One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
- ipv6Prefix
Count Number - The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv6Prefix
option. - ipv6Prefixes List<Property Map>
- One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option. - 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.
- primary
Ipv6 Boolean - The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
- private
Ip StringAddress - The primary private IPv4 address of the network interface.
- private
Ip List<Property Map>Addresses - One or more private IPv4 addresses.
- secondary
Private NumberIp Address Count - The number of secondary private IPv4 addresses to assign to a network interface.
- subnet
Id String - The ID of the subnet for the network interface.
LaunchTemplateNetworkInterfaceCount, LaunchTemplateNetworkInterfaceCountArgs
LaunchTemplatePlacement, LaunchTemplatePlacementArgs
- Affinity string
- The affinity setting for an instance on a Dedicated Host.
- Availability
Zone string - The Availability Zone for the instance.
- Group
Id string - The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
- 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 the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to
host
. - 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. An instance with a tenancy of dedicated runs on single-tenant hardware.
- Affinity string
- The affinity setting for an instance on a Dedicated Host.
- Availability
Zone string - The Availability Zone for the instance.
- Group
Id string - The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
- 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 the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to
host
. - 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. An instance with a tenancy of dedicated runs on single-tenant hardware.
- affinity String
- The affinity setting for an instance on a Dedicated Host.
- availability
Zone String - The Availability Zone for the instance.
- group
Id String - The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
- 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 the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to
host
. - 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. An instance with a tenancy of dedicated runs on single-tenant hardware.
- affinity string
- The affinity setting for an instance on a Dedicated Host.
- availability
Zone string - The Availability Zone for the instance.
- group
Id string - The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
- 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 the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to
host
. - 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. An instance with a tenancy of dedicated runs on single-tenant hardware.
- affinity str
- The affinity setting for an instance on a Dedicated Host.
- availability_
zone str - The Availability Zone for the instance.
- group_
id str - The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
- 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 the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to
host
. - 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. An instance with a tenancy of dedicated runs on single-tenant hardware.
- affinity String
- The affinity setting for an instance on a Dedicated Host.
- availability
Zone String - The Availability Zone for the instance.
- group
Id String - The Group Id of a placement group. You must specify the Placement Group Group Id to launch an instance in a shared placement group.
- 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 the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to
host
. - 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. An instance with a tenancy of dedicated runs on single-tenant hardware.
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 EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only 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. For more information, see Amazon EC2 instance hostname types in the User Guide.
- 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 EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only 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. For more information, see Amazon EC2 instance hostname types in the User Guide.
- 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 EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only 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. For more information, see Amazon EC2 instance hostname types in the User Guide.
- 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 EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only 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. For more information, see Amazon EC2 instance hostname types in the User Guide.
- 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 EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only 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. For more information, see Amazon EC2 instance hostname types in the User Guide.
- 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 EC2 instances. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only 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. For more information, see Amazon EC2 instance hostname types in the User Guide.
LaunchTemplatePrivateIpAdd, LaunchTemplatePrivateIpAddArgs
- Primary bool
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- Private
Ip stringAddress - The private IPv4 address.
- Primary bool
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- Private
Ip stringAddress - The private IPv4 address.
- primary Boolean
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- private
Ip StringAddress - The private IPv4 address.
- primary boolean
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- private
Ip stringAddress - The private IPv4 address.
- primary bool
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- private_
ip_ straddress - The private IPv4 address.
- primary Boolean
- Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.
- private
Ip StringAddress - The private IPv4 address.
LaunchTemplateSpotOptions, LaunchTemplateSpotOptionsArgs
- Block
Duration intMinutes - Deprecated.
- Instance
Interruption stringBehavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - Max
Price string - The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price. If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
- Spot
Instance stringType - The Spot Instance request type.
If you are using Spot Instances with an Auto Scaling group, use
one-time
requests, as the ASlong service handles requesting new Spot Instances whenever the group is below its desired capacity. - Valid
Until string The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
- For a persistent request, the request remains active until the
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it. - For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.
Default: 7 days from the current date
- For a persistent request, the request remains active until the
- Block
Duration intMinutes - Deprecated.
- Instance
Interruption stringBehavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - Max
Price string - The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price. If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
- Spot
Instance stringType - The Spot Instance request type.
If you are using Spot Instances with an Auto Scaling group, use
one-time
requests, as the ASlong service handles requesting new Spot Instances whenever the group is below its desired capacity. - Valid
Until string The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
- For a persistent request, the request remains active until the
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it. - For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.
Default: 7 days from the current date
- For a persistent request, the request remains active until the
- block
Duration IntegerMinutes - Deprecated.
- instance
Interruption StringBehavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - max
Price String - The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price. If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
- spot
Instance StringType - The Spot Instance request type.
If you are using Spot Instances with an Auto Scaling group, use
one-time
requests, as the ASlong service handles requesting new Spot Instances whenever the group is below its desired capacity. - valid
Until String The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
- For a persistent request, the request remains active until the
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it. - For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.
Default: 7 days from the current date
- For a persistent request, the request remains active until the
- block
Duration numberMinutes - Deprecated.
- instance
Interruption stringBehavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - max
Price string - The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price. If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
- spot
Instance stringType - The Spot Instance request type.
If you are using Spot Instances with an Auto Scaling group, use
one-time
requests, as the ASlong service handles requesting new Spot Instances whenever the group is below its desired capacity. - valid
Until string The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
- For a persistent request, the request remains active until the
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it. - For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.
Default: 7 days from the current date
- For a persistent request, the request remains active until the
- block_
duration_ intminutes - Deprecated.
- instance_
interruption_ strbehavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - max_
price str - The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price. If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
- spot_
instance_ strtype - The Spot Instance request type.
If you are using Spot Instances with an Auto Scaling group, use
one-time
requests, as the ASlong service handles requesting new Spot Instances whenever the group is below its desired capacity. - valid_
until str The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
- For a persistent request, the request remains active until the
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it. - For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.
Default: 7 days from the current date
- For a persistent request, the request remains active until the
- block
Duration NumberMinutes - Deprecated.
- instance
Interruption StringBehavior - The behavior when a Spot Instance is interrupted. The default is
terminate
. - max
Price String - The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price. If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
- spot
Instance StringType - The Spot Instance request type.
If you are using Spot Instances with an Auto Scaling group, use
one-time
requests, as the ASlong service handles requesting new Spot Instances whenever the group is below its desired capacity. - valid
Until String The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
- For a persistent request, the request remains active until the
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it. - For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.
Default: 7 days from the current date
- For a persistent request, the request remains active until the
LaunchTemplateTag, LaunchTemplateTagArgs
LaunchTemplateTagSpecification, LaunchTemplateTagSpecificationArgs
- Resource
Type string - The type of resource. To tag a launch template,
ResourceType
must belaunch-template
. - List<Pulumi.
Aws Native. Ec2. Inputs. Launch Template Tag> - The tags for the resource.
- Resource
Type string - The type of resource. To tag a launch template,
ResourceType
must belaunch-template
. - []Launch
Template Tag - The tags for the resource.
- resource
Type String - The type of resource. To tag a launch template,
ResourceType
must belaunch-template
. - List<Launch
Template Tag> - The tags for the resource.
- resource
Type string - The type of resource. To tag a launch template,
ResourceType
must belaunch-template
. - Launch
Template Tag[] - The tags for the resource.
- resource_
type str - The type of resource. To tag a launch template,
ResourceType
must belaunch-template
. - Sequence[Launch
Template Tag] - The tags for the resource.
- resource
Type String - The type of resource. To tag a launch template,
ResourceType
must belaunch-template
. - List<Property Map>
- The tags for the resource.
LaunchTemplateTotalLocalStorageGb, LaunchTemplateTotalLocalStorageGbArgs
LaunchTemplateVCpuCount, LaunchTemplateVCpuCountArgs
TagSpecification, TagSpecificationArgs
- Resource
Type string - The type of resource to tag. You can specify tags for the following resource types only:
instance
|volume
|network-interface
|spot-instances-request
. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume. To tag a resource after it has been created, see CreateTags. - List<Pulumi.
Aws Native. Ec2. Inputs. Launch Template Tag> - The tags to apply to the resource.
- Resource
Type string - The type of resource to tag. You can specify tags for the following resource types only:
instance
|volume
|network-interface
|spot-instances-request
. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume. To tag a resource after it has been created, see CreateTags. - []Launch
Template Tag - The tags to apply to the resource.
- resource
Type String - The type of resource to tag. You can specify tags for the following resource types only:
instance
|volume
|network-interface
|spot-instances-request
. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume. To tag a resource after it has been created, see CreateTags. - List<Launch
Template Tag> - The tags to apply to the resource.
- resource
Type string - The type of resource to tag. You can specify tags for the following resource types only:
instance
|volume
|network-interface
|spot-instances-request
. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume. To tag a resource after it has been created, see CreateTags. - Launch
Template Tag[] - The tags to apply to the resource.
- resource_
type str - The type of resource to tag. You can specify tags for the following resource types only:
instance
|volume
|network-interface
|spot-instances-request
. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume. To tag a resource after it has been created, see CreateTags. - Sequence[Launch
Template Tag] - The tags to apply to the resource.
- resource
Type String - The type of resource to tag. You can specify tags for the following resource types only:
instance
|volume
|network-interface
|spot-instances-request
. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume. To tag a resource after it has been created, see CreateTags. - List<Property Map>
- The tags to apply to the resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.