docs: def alias_create(indices, alias, hosts=None, body=None, profile=None, source=None):
      '''
      Create an alias for a specific index/indices
  
      indices
          Single or multiple indices separated by comma, use _all to perform the operation on all indices.
      alias
          Alias name
      body
          Optional definition such as routing or filter as defined in https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
      source
          URL of file specifying optional definition such as routing or filter. Cannot be used in combination with ``body``.
  
      CLI example::
  
          salt myminion elasticsearch.alias_create testindex_v1 testindex
      '''
      es = _get_instance(hosts, profile)
      if source and body:
          message = 'Either body or source should be specified but not both.'
          raise SaltInvocationError(message)
      if source:
          body = __salt__['cp.get_file_str'](
                    source,
                    saltenv=__opts__.get('saltenv', 'base'))
      try:
          result = es.indices.put_alias(index=indices, name=alias, body=body)
          return result.get('acknowledged', False)
      except elasticsearch.TransportError as e:
          raise CommandExecutionError("Cannot create alias {0} in index {1}, server returned code {2} with message {3}".format(alias, indices, e.status_code, e.error))