code: def exists(instance_id=None, name=None, tags=None, region=None, key=None,
             keyid=None, profile=None, in_states=None, filters=None):
      '''
      Given an instance id, check to see if the given instance id exists.
  
      Returns True if the given instance with the given id, name, or tags
      exists; otherwise, False is returned.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_ec2.exists myinstance
      '''
      instances = find_instances(instance_id=instance_id, name=name, tags=tags,
                                 region=region, key=key, keyid=keyid,
                                 profile=profile, in_states=in_states, filters=filters)
      if instances:
          log.info('Instance exists.')
          return True
      else:
          log.warning('Instance does not exist.')
          return Falsf exists(instance_id=None, name=None, tags=None, region=None, key=None,
             keyid=None, profile=None, in_states=None, filters=None):
      '''
      Given an instance id, check to see if the given instance id exists.
  
      Returns True if the given instance with the given id, name, or tags
      exists; otherwise, False is returned.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_ec2.exists myinstance
      '''
      instances = find_instances(instance_id=instance_id, name=name, tags=tags,
                                 region=region, key=key, keyid=keyid,
                                 profile=profile, in_states=in_states, filters=filters)
      if instances:
          log.info('Instance exists.')
          return True
      else:
          log.warning('Instance does not exist.')
          return False
docs: Given an instance id, check to see if the given instance id exists.
  
      Returns True if the given instance with the given id, name, or tags
      exists; otherwise, False is returned.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion boto_ec2.exists myinstance