def _get_auth_kwargs(config):
    """Generate the kwargs for the AWS keys from a configuration dictionary.

    If credentials are not present in the config, then assume that
    we're using IAM roles with instance profiles. :mod:`boto` will
    automatically take care of using the credentials from the instance
    metadata if not provided with kwargs.

    :param config: The configuration to use when looking for explicitly
        provided AWS credentials.
    :type config: dict

    :returns: The kwargs for use with :mod:`boto` connect functions.
    :rtype: dict
    """
    if not ('access_key_id' in config and 'secret_access_key' in config):
        return {}
    return {
        'aws_access_key_id': config['access_key_id'],
        'aws_secret_access_key': config['secret_access_key'],
    }
Generate the kwargs for the AWS keys from a configuration dictionary.

    If credentials are not present in the config, then assume that
    we're using IAM roles with instance profiles. :mod:`boto` will
    automatically take care of using the credentials from the instance
    metadata if not provided with kwargs.

    :param config: The configuration to use when looking for explicitly
        provided AWS credentials.
    :type config: dict

    :returns: The kwargs for use with :mod:`boto` connect functions.
    :rtype: dict
    
src/collectors/sqs/sqs.py