mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 18:33:08 -04:00
20 lines
343 B
HCL
20 lines
343 B
HCL
|
|
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
|
||
|
|
}
|
||
|
|
}
|