mirror of https://github.com/hashicorp/terraform
This test illustrates a failure which occurs during the Input walk, if an interpolation is used with the input of a splat operation resulting in a multi-variable. The bug was found during use of the RC2, but does not correspond to an open issue at present.pull/7304/head
parent
17f4777039
commit
983e4f13c6
@ -0,0 +1,9 @@
|
||||
module "b" {
|
||||
source = "./modb"
|
||||
}
|
||||
|
||||
module "a" {
|
||||
source = "./moda"
|
||||
|
||||
single_element = "${element(module.b.computed_list, 0)}"
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
variable "single_element" {
|
||||
type = "string"
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
resource "aws_instance" "test" {
|
||||
count = 3
|
||||
}
|
||||
|
||||
output "computed_list" {
|
||||
value = ["${aws_instance.test.*.id}"]
|
||||
}
|
||||
Loading…
Reference in new issue