AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::LaunchTemplate

EC2 LaunchTemplate

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, instanc...

Properties

4 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
LaunchTemplateData
LaunchTemplateData
RequiredWrite-only
LaunchTemplateName
string
Create-only
TagSpecifications
Array<LaunchTemplateTagSpecification>
Write-only
VersionDescription
string
Write-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
DefaultVersionNumberstring-
LatestVersionNumberstring-
LaunchTemplateIdstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::LaunchTemplate

Resources:
  MyResource:
    Type: AWS::EC2::LaunchTemplate
    Properties:
      LaunchTemplateData: "value"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

ec2:DescribeLaunchTemplates

create

ec2:CreateLaunchTemplateec2:CreateTags

update

ec2:CreateLaunchTemplateVersion

list

ec2:DescribeLaunchTemplates

delete

ec2:DeleteLaunchTemplateec2:DeleteTagsec2:DescribeLaunchTemplates

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties7
Required1
TaggingNot supported
Primary IDLaunchTemplateId

Supported Operations

ReadCreateUpdateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

LaunchTemplateName

External Links