code: func (u *ResourceCommand) Create(client auth.ClientI) error {
  	reader, err := utils.OpenFile(u.filename)
  	if err != nil {
  		return trace.Wrap(err)
  	}
  	decoder := kyaml.NewYAMLOrJSONDecoder(reader, 32*1024)
  	count := 0
  	for {
  		var raw services.UnknownResource
  		err := decoder.Decode(&raw)
  		if err != nil {
  			if err == io.EOF {
  				if count == 0 {
  					return trace.BadParameter("no resources found, empty input?")
  				}
  				return nil
  			}
  			return trace.Wrap(err)
  		}
  		count++
  
  		// locate the creator function for a given resource kind:
  		creator, found := u.CreateHandlers[ResourceKind(raw.Kind)]
  		if !found {
  			return trace.BadParameter("creating resources of type %q is not supported", raw.Kind)
  		}
  		// only return in case of error, to create multiple resources
  		// in case if yaml spec is a list
  		if err := creator(client, raw); err != nil {
  			return trace.Wrap(err)
  		}
  	}
  }
docs: // Create updates or insterts one or many resources