opentofu/terraform/test-fixtures/input-module-computed-output-element/main.tf
James Nugent 983e4f13c6 core: Add context test for empty lists as module outputs
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.
2016-06-23 21:15:33 +01:00

10 lines
131 B
HCL

module "b" {
source = "./modb"
}
module "a" {
source = "./moda"
single_element = "${element(module.b.computed_list, 0)}"
}