locals { ami_map = { "tq" = data.aws_ami.tq.image_id, } # We need some data from the block devices block_device_mappings = { "tq" = { for bd in data.aws_ami.tq.block_device_mappings : bd.device_name => bd } } } data "aws_ami" "tq" { most_recent = true owners = [var.common_services_account] filter { name = "virtualization-type" values = ["hvm"] } filter { name = "root-device-type" values = ["ebs"] } filter { name = "name" values = ["XDR_ThreatQ_*"] } }