mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 16:10:46 -06:00
18 lines
492 B
Terraform
18 lines
492 B
Terraform
|
resource "test_resource" "root" {
|
||
|
required = local.object.id
|
||
|
}
|
||
|
|
||
|
locals {
|
||
|
# This indirection is here to force the evaluator to produce the whole
|
||
|
# module object here rather than just fetching the single "object" output.
|
||
|
# This makes this fixture different than plan-required-output, which just
|
||
|
# accesses module.mod.object.id directly and thus visits a different
|
||
|
# codepath in the evaluator.
|
||
|
mod = module.mod
|
||
|
object = local.mod.object
|
||
|
}
|
||
|
|
||
|
module "mod" {
|
||
|
source = "./mod"
|
||
|
}
|