Skip to main content

launch_templates_list_only

Lists launch_templates in a region or regions, for all properties use launch_templates

Overview

Namelaunch_templates_list_only
TypeResource
DescriptionSpecifies 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, 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.
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_list_only

Fields

NameDatatypeDescription
launch_template_namestringA name for the launch template.
launch_template_dataobjectThe information for the launch template.
version_descriptionstringA description for the first version of the launch template.
tag_specificationsarrayThe tags to apply to the launch template on creation. To tag the launch template, the resource type must be launch-template.
To specify the tags for the resources that are created when an instance is launched, you must use [TagSpecifications](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-tagspecifications).
latest_version_numberstring
launch_template_idstring
default_version_numberstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
list_resourcesSELECTregion

SELECT examples

Lists all launch_templates in a region.

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

Permissions

For permissions required to operate on the launch_templates_list_only resource, see launch_templates