mirror of https://github.com/hashicorp/terraform
The interpolation going into a module variable here will be valid after Refresh, but Refresh doesn't happen for the Input phase.pull/15780/head
parent
97bb7cb65c
commit
1664d4e228
@ -0,0 +1,5 @@
|
||||
variable "in" {}
|
||||
|
||||
output "out" {
|
||||
value = "${var.in}"
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
data "null_data_source" "bar" {
|
||||
foo = ["a", "b"]
|
||||
}
|
||||
|
||||
module "child" {
|
||||
source = "./child"
|
||||
in = "${data.null_data_source.bar.foo[1]}"
|
||||
}
|
||||
Loading…
Reference in new issue