def instance_profile_exists(name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  conn.get_instance_profile(name)
  return True
 except boto.exception.BotoServerError:
  return False

def instance_profile_exists ( name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : conn . get_instance_profile ( name ) return True except boto . exception . BotoServerError : return False
check to see if an instance profile exists .