AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon EC2 Instance LaunchTemplateSpecification

The LaunchTemplateSpecification property type specifies the launch template to use. You must specify either the launch template ID or launch template name.

LaunchTemplateSpecification is a property of the AWS::EC2::Instance resource.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "LaunchTemplateId" : String, "LaunchTemplateName" : String, "Version" : String }

YAML

LaunchTemplateId: String LaunchTemplateName: String Version: String

Properties

LaunchTemplateId

The ID of the launch template. You must specify either a template ID or a template name.

Minimum length of 1. Maximum length of 255. IDs must fit the following pattern:

[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Required: No

Type: String

Update requires: No interruption

LaunchTemplateName

The name of the launch template. You must specify either a template name or a template ID.

Minimum length of 3. Maximum length of 128. Names must fit the following pattern:

[a-zA-Z0-9\(\)\.-/_]+

Required: No

Type: String

Update requires: No interruption

Version

The version number. AWS CloudFormation does not support specifying $Latest, or $Default for the template version number.

Minimum length of 1. Maximum length of 255. Versions must fit the following pattern:

[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Required: Yes

Type: String

Update requires: No interruption

See Also

On this page: