Provides information about a Launch Template.
data "aws_launch_template" "default" {
name = "my-launch-template"
}
data "aws_launch_template" "test" {
filter {
name = "launch-template-name"
values = ["some-template"]
}
}
This data source supports the following arguments:
filter
- (Optional) Configuration block(s) for filtering. Detailed below.id
- (Optional) ID of the specific launch template to retrieve.name
- (Optional) Name of the launch template.tags
- (Optional) Map of tags, each pair of which must exactly match a pair on the desired Launch Template.The filter
configuration block supports the following arguments:
name
- (Required) Name of the filter field. Valid values can be found in the EC2 DescribeLaunchTemplates API Reference.values
- (Required) Set of values that are accepted for the given filter field. Results will be selected if any given value matches.This data source exports the following attributes in addition to the arguments above:
id
- ID of the launch template.This resource also exports a full set of attributes corresponding to the arguments of the aws_launch_template
resource.
read
- (Default 20m
)