libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] maingoh opened a new issue #1366: S3 get_driver using region name
Date Wed, 06 Nov 2019 15:25:26 GMT
maingoh opened a new issue #1366: S3 get_driver using region name
URL: https://github.com/apache/libcloud/issues/1366
 
 
   For some reason it seems there is one driver for each S3 region.
   Thus we cannot dynamically get a s3 driver depending on the region string.
   
   For example something like this:
   ```
   cls = get_driver(Provider.S3, region_name='eu-west-1')
   ``` 
   
   Or maybe it would be better to have one only S3StorageDriver class where we can specify
the region during construction.
   
   ```
   driver = cls(access_key_id, secret_acces_key, region=region_name, region_name=region_name)
   ```
   
   Though it seems there is two region attribute which should match. `region_name` from S3StorageDriver
and `region` from `AWSDriver`.
   
   

----------------------------------------------------------------
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


With regards,
Apache Git Services

Mime
View raw message