variable "target_ami" { description = "The AMI to search for" type = string default = "ami-12345" } variable "instance_name" { description = "The instance name to search for" type = string } list "test_instance" "example" { provider = test config { ami = var.target_ami foo = var.instance_name } }