Data "aws_launch_template"

Hey All,
In my aws env I have multiple launch templates with the same tags (Terraform=Terraform)
Im trying to create data “aws_launch_template” which search for that tag and use first template match or random one from all of them.

it looks like that data source can contain only one identety.

data “aws_launch_template” “LT” {
tags = {
Terraform = “Terraform”
}
provider = aws
}

“multiple EC2 Launch Templates matched; use additional constraints to reduce matches to a single EC2 Launch Template”

is there any way to preform this?

Thanks :slight_smile: