diff --git a/helper/schema/core_schema.go b/helper/schema/core_schema.go index 95398578be..00e847a2c9 100644 --- a/helper/schema/core_schema.go +++ b/helper/schema/core_schema.go @@ -154,3 +154,9 @@ func (s *Schema) coreConfigSchemaType() cty.Type { func (r *Resource) CoreConfigSchema() *configschema.Block { return schemaMap(r.Schema).CoreConfigSchema() } + +// CoreConfigSchema is a convenient shortcut for calling CoreConfigSchema +// on the backends's schema. +func (r *Backend) CoreConfigSchema() *configschema.Block { + return schemaMap(r.Schema).CoreConfigSchema() +}