def get_accounts_aws(self, filter=""):
    """Retrieves AWS account information from Polaris

    Args:
        filter (str): Search string to filter results

    Returns:
        dict: Details of AWS accounts in Polaris

    Raises:
        RequestException: If the query to Polaris returned an error
    """
    try:
        query_name = "accounts_aws"
        variables = {
            "filter": filter
        }
        return self._query(query_name, variables)
    except Exception:
        raise