mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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.
9 lines
125 B
HCL
9 lines
125 B
HCL
resource "aws_instance" "A" {
|
|
foo = "bar"
|
|
}
|
|
|
|
module "child" {
|
|
source = "child"
|
|
key = "${aws_instance.A.id}"
|
|
}
|