Get AWS keys from pillar or config

def _get_s3_key():
    '''
    Get AWS keys from pillar or config
    '''

    key = __opts__['s3.key'] if 's3.key' in __opts__ else None
    keyid = __opts__['s3.keyid'] if 's3.keyid' in __opts__ else None
    service_url = __opts__['s3.service_url'] \
        if 's3.service_url' in __opts__ \
        else None
    verify_ssl = __opts__['s3.verify_ssl'] \
        if 's3.verify_ssl' in __opts__ \
        else None
    kms_keyid = __opts__['aws.kmw.keyid'] if 'aws.kms.keyid' in __opts__ else None
    location = __opts__['s3.location'] \
        if 's3.location' in __opts__ \
        else None
    path_style = __opts__['s3.path_style'] \
        if 's3.path_style' in __opts__ \
        else None
    https_enable = __opts__['s3.https_enable'] \
        if 's3.https_enable' in __opts__ \
        else None

    return key, keyid, service_url, verify_ssl, kms_keyid, location, path_style, https_enable