mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 10:31:22 -04:00
21 lines
306 B
HCL
21 lines
306 B
HCL
variable "input" {
|
|
type = string
|
|
default = "foo"
|
|
}
|
|
|
|
list "test_instance" "test" {
|
|
provider = test
|
|
|
|
config {
|
|
ami = var.input
|
|
}
|
|
}
|
|
|
|
list "test_instance" "test2" {
|
|
provider = test
|
|
|
|
config {
|
|
// this traversal is invalid for a list resource
|
|
ami = list.test_instance.test.state.instance_type
|
|
}
|
|
}
|