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 Create a launch template for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.
For examples of launch templates, see Auto scaling template
snippets and the Examples section in the AWS::EC2::LaunchTemplate
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 AWS::EC2::LaunchTemplate. You must specify either a
LaunchTemplateName
or aLaunchTemplateId
.Required: Conditional
Type: String
Update requires: No interruption
LaunchTemplateName
-
The name of the AWS::EC2::LaunchTemplate. You must specify either a
LaunchTemplateName
or aLaunchTemplateId
.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
orDefaultVersionNumber
using theFn::GetAtt
function.Note For an example of using the
Fn::GetAtt
function, see the Examples section of theAWS::AutoScaling::AutoScalingGroup
reference.Required: Yes
Type: String
Update requires: No interruption
See also
-
Required KMS key policy for use with encrypted volumes in the Amazon EC2 Auto Scaling User Guide
-
Use encryption with EBS-backed AMIs in the Amazon EC2 User Guide for Linux Instances