Data Source: awsLaunchTemplate
Provides information about a Launch Template.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsLaunchTemplate.DataAwsLaunchTemplate(this, "default", {
name: "my-launch-template",
});
Filter
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsLaunchTemplate.DataAwsLaunchTemplate(this, "test", {
filter: [
{
name: "launch-template-name",
values: ["some-template"],
},
],
});
Argument Reference
The following arguments are supported:
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.
filter Configuration Block
The following arguments are supported by the filter
configuration block:
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.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- ID of the launch template.
This resource also exports a full set of attributes corresponding to the arguments of the awsLaunchTemplate
resource.
Timeouts
read
- (Default20M
)