You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/12 04:55:44 UTC

[GitHub] [airflow] izhangzhihao commented on issue #15319: [Remote Logging] Support MinIO & Aliyun OSS & other storage

izhangzhihao commented on issue #15319:
URL: https://github.com/apache/airflow/issues/15319#issuecomment-817477506


   Or we could make `endpoint_url` of the s3 client configurable because our team is using the boto3 client to access Aliyun OSS.
   
   ```
       def __init_s3_client__(self):
           session = boto3.session.Session(
               aws_access_key_id=os.environ['OSS_KEY_ID'],
               aws_secret_access_key=os.environ['OSS_KEY_SECRET'],
               region_name=os.environ['REGION'],
           )
   
           s3config = Config(
               s3={
                   'addressing_style': 'virtual'
               }
           )
           return session.client('s3', endpoint_url='https://' + os.environ['OSS_ENDPOINT_URL'], config=s3config)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org