diff --git a/internal/schema/0.12/locals_block.go b/internal/schema/0.12/locals_block.go index c9236823..eed2ee1e 100644 --- a/internal/schema/0.12/locals_block.go +++ b/internal/schema/0.12/locals_block.go @@ -23,8 +23,9 @@ func localsBlockSchema() *schema.BlockSchema { schema.StaticStep{Name: "local"}, schema.AttrNameStep{}, }, - ScopeId: refscope.LocalScope, - AsExprType: true, + ScopeId: refscope.LocalScope, + AsExprType: true, + AsReference: true, }, Constraint: schema.AnyExpression{OfType: cty.DynamicPseudoType}, },