Specifying the AWS AMI when creating aws_launch_template

I want to create an aws_launch_template and need to supply an AWS AMI.

I could filter out the ami as in data “aws_ami” “example” {} but an updated AMI may break my deployment.

My other option is to specify the AMI ID but I’d have to ensure my own AMI is created beforehand.

What is the typical method to specify the AMI when creating a launch template?