diff --git a/internal/schema/0.12/data_block.go b/internal/schema/0.12/data_block.go index 64187dd8..44649a0f 100644 --- a/internal/schema/0.12/data_block.go +++ b/internal/schema/0.12/data_block.go @@ -65,6 +65,7 @@ func datasourceBlockSchema(v *version.Version) *schema.BlockSchema { schema.Reference{OfScopeId: refscope.ModuleScope}, schema.Reference{OfScopeId: refscope.ResourceScope}, schema.Reference{OfScopeId: refscope.VariableScope}, + schema.Reference{OfScopeId: refscope.LocalScope}, }, }, IsOptional: true, diff --git a/internal/schema/0.12/output_block.go b/internal/schema/0.12/output_block.go index e8e34b28..935ac932 100644 --- a/internal/schema/0.12/output_block.go +++ b/internal/schema/0.12/output_block.go @@ -56,6 +56,7 @@ func outputBlockSchema() *schema.BlockSchema { schema.Reference{OfScopeId: refscope.ModuleScope}, schema.Reference{OfScopeId: refscope.ResourceScope}, schema.Reference{OfScopeId: refscope.VariableScope}, + schema.Reference{OfScopeId: refscope.LocalScope}, }, }, IsOptional: true, diff --git a/internal/schema/0.12/resource_block.go b/internal/schema/0.12/resource_block.go index 8b135398..caaa2eb6 100644 --- a/internal/schema/0.12/resource_block.go +++ b/internal/schema/0.12/resource_block.go @@ -65,6 +65,7 @@ func resourceBlockSchema(v *version.Version) *schema.BlockSchema { schema.Reference{OfScopeId: refscope.ModuleScope}, schema.Reference{OfScopeId: refscope.ResourceScope}, schema.Reference{OfScopeId: refscope.VariableScope}, + schema.Reference{OfScopeId: refscope.LocalScope}, }, }, IsOptional: true, diff --git a/internal/schema/0.13/module_block.go b/internal/schema/0.13/module_block.go index a6d8cf50..a2ff97d6 100644 --- a/internal/schema/0.13/module_block.go +++ b/internal/schema/0.13/module_block.go @@ -82,6 +82,7 @@ func moduleBlockSchema() *schema.BlockSchema { schema.Reference{OfScopeId: refscope.ModuleScope}, schema.Reference{OfScopeId: refscope.ResourceScope}, schema.Reference{OfScopeId: refscope.VariableScope}, + schema.Reference{OfScopeId: refscope.LocalScope}, }, }, IsOptional: true, diff --git a/internal/schema/1.5/check.go b/internal/schema/1.5/check.go index 175baaae..5a79acb6 100644 --- a/internal/schema/1.5/check.go +++ b/internal/schema/1.5/check.go @@ -86,6 +86,7 @@ func scopedDataBlock() *schema.BlockSchema { schema.Reference{OfScopeId: refscope.ModuleScope}, schema.Reference{OfScopeId: refscope.ResourceScope}, schema.Reference{OfScopeId: refscope.VariableScope}, + schema.Reference{OfScopeId: refscope.LocalScope}, }, }, IsOptional: true,