Skip to main content

launch_templates

Used to retrieve a list of launch_templates in a region or create a launch_templates resource, use launch_template to operate on an individual resource.

Overview

Namelaunch_templates
TypeResource
DescriptionSpecifies the properties for creating a launch template.<br/> The minimum required properties for specifying a launch template are as follows:<br/> + You must specify at least one property for the launch template data.<br/> + You do not need to specify a name for the launch template. If you do not specify a name, CFN creates the name for you.<br/> <br/> 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, instance properties that are not specified in the launch template use default values, except the ``ImageId`` property, which has no default value. If you do not specify an AMI ID for the launch template ``ImageId`` property, you must specify an AMI ID for the instance ``ImageId`` property.<br/> For more information, see [Launch an instance from a launch template](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) in the *Amazon EC2 User Guide*.
Idaws.ec2.launch_templates

Fields

NameDatatypeDescription
launch_template_idstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTdata__DesiredState, region
list_resourceSELECTregion

SELECT Example

SELECT
region,
launch_template_id
FROM aws.ec2.launch_templates
WHERE region = 'us-east-1'

Permissions

To operate on the launch_templates resource, the following permissions are required:

Create

ec2:CreateLaunchTemplate,
ec2:CreateTags

List

ec2:DescribeLaunchTemplates