resource "test_instance" "foo" {
ami = "bar"
network_interface {
device_index = 0
description = "Main network interface ${var.name}"
}
variable "name" {}