github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/plan-required-whole-mod/main.tf (about) 1 resource "test_resource" "root" { 2 required = local.object.id 3 } 4 5 locals { 6 # This indirection is here to force the evaluator to produce the whole 7 # module object here rather than just fetching the single "object" output. 8 # This makes this fixture different than plan-required-output, which just 9 # accesses module.mod.object.id directly and thus visits a different 10 # codepath in the evaluator. 11 mod = module.mod 12 object = local.mod.object 13 } 14 15 module "mod" { 16 source = "./mod" 17 }