AWS::AutoScaling::AutoScalingGroup LaunchTemplateSpecification - AWS CloudFormation

AWS::AutoScaling::AutoScalingGroup LaunchTemplateSpecification

The LaunchTemplateSpecification property specifies the Amazon EC2 launch template and the launch template version that can be used by an Auto Scaling group to configure Amazon EC2 instances.

The launch template that is specified must be configured for use with an Auto Scaling group. For information about creating a launch template, see Creating a Launch Template for an Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.

You can find a sample template snippet in the Examples section of the AWS::AutoScaling::AutoScalingGroup documentation.

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 AWS::EC2::LaunchTemplate. You must specify either a template ID or a template name.

Required: Conditional

Type: String

Minimum: 1

Maximum: 255

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

Update requires: No interruption

LaunchTemplateName

The name of the AWS::EC2::LaunchTemplate. You must specify either a template name or a template ID.

Required: Conditional

Type: String

Minimum: 3

Maximum: 128

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

Update requires: No interruption

Version

The version number. AWS CloudFormation does not support specifying $Latest, or $Default for the template version number. However, you can specify LatestVersionNumber or DefaultVersionNumber using the Fn::GetAtt function. For more information, see Fn::GetAtt in the AWS::EC2::LaunchTemplate documentation.

Required: Yes

Type: String

Minimum: 1

Maximum: 255

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

Update requires: No interruption

See Also