Data Source: aws_launch_template#
Provides information about a launch template.
Example Usage#
data "aws_launch_template" "example" {
name = "tf-lt"
}
Search by Filter#
data "aws_launch_template" "example" {
filter {
name = "launch-template-name"
values = ["some-template"]
}
}
Argument Reference#
The following arguments are supported:
filter
- (Optional) One or more name/value pairs to use as filters.- Valid values: See supported names and values in EC2 API documentation
id
- (Optional) The ID of the specific launch template to retrieve.name
- (Optional) The name of the launch template.tags
- (Optional) Map of tags, each pair of which must exactly match a pair on the desired launch template.
Attribute Reference#
In addition to all arguments above, the following attributes are exported:
id
- The ID of the launch template.
This resource also exports a full set of attributes corresponding to the arguments of the aws_launch_template
resource.