AWS::AutoScaling::AutoScalingGroup LaunchTemplateSpecification - AWS CloudFormation

AWS::AutoScaling::AutoScalingGroup LaunchTemplateSpecification

LaunchTemplateSpecification specifies a launch template and version for the LaunchTemplate property of the AWS::AutoScaling::AutoScalingGroup resource. It is also a property of the AWS::AutoScaling::AutoScalingGroup LaunchTemplate and AWS::AutoScaling::AutoScalingGroup LaunchTemplateOverrides property types.

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 snippets in the Examples section of the AWS::AutoScaling::AutoScalingGroup documentation and in the Examples section of the AWS::EC2::LaunchTemplate 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 LaunchTemplateName or a LaunchTemplateId.

Required: Conditional

Type: String

Update requires: No interruption

LaunchTemplateName

The name of the AWS::EC2::LaunchTemplate. You must specify either a LaunchTemplateName or a LaunchTemplateId.

Required: Conditional

Type: String

Update requires: No interruption

Version

The version number. 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.

Note

For an example of using the Fn::GetAtt function, see the Examples section of the AWS::AutoScaling::AutoScalingGroup documentation.

Required: Yes

Type: String

Update requires: No interruption

See also