opentofu/terraform/test-fixtures/refresh-data-module-var/main.tf
Mitchell Hashimoto e8b3062629
terraform: unknown value for variables not set
Fixes #12836

Realistically, these should be caught during validation anyways. In this
case, this was causing 12386 because refresh with a data source will
attempt to use module variables. I don't see any clear logic to prune
those module variables or not add them so its easier to return unknown
to cause the data to be computed and not run.
2017-03-17 15:33:33 -07:00

9 lines
125 B
HCL

resource "aws_instance" "A" {
foo = "bar"
}
module "child" {
source = "child"
key = "${aws_instance.A.id}"
}