mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
The reproduction of issue #7421 involves a list of maps being passed to a module, where one or more of the maps has a value which is computed (for example, from another resource). There is a failure at the point of use (via lookup interpolation) of the computed value of the form: ``` lookup: lookup failed to find 'elb' in: ${lookup(var.services[count.index], "elb")} ``` Where 'elb' is the key of the map.
16 lines
318 B
HCL
16 lines
318 B
HCL
resource "aws_computed_source" "intermediates" {}
|
|
|
|
module "test_mod" {
|
|
source = "./mod"
|
|
|
|
services {
|
|
"exists" = "true"
|
|
"elb" = "${aws_computed_source.intermediates.computed_read_only}"
|
|
}
|
|
|
|
services {
|
|
"otherexists" = " true"
|
|
"elb" = "${aws_computed_source.intermediates.computed_read_only}"
|
|
}
|
|
}
|