code: func (b *Backend) shimConfig(obj cty.Value) *terraform.ResourceConfig {
  	shimMap, ok := hcl2shim.ConfigValueFromHCL2(obj).(map[string]interface{})
  	if !ok {
  		// If the configVal was nil, we still want a non-nil map here.
  		shimMap = map[string]interface{}{}
  	}
  	return &terraform.ResourceConfig{
  		Config: shimMap,
  		Raw:    shimMap,
  	}
  }
docs: // shimConfig turns a new-style cty.Value configuration (which must be of
  // an object type) into a minimal old-style *terraform.ResourceConfig object
  // that should be populated enough to appease the not-yet-updated functionality
  // in this package. This should be removed once everything is updated.