You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2019/12/21 21:45:19 UTC

[GitHub] [libcloud] Kami commented on issue #1379: S3 Drivers issue.

Kami commented on issue #1379: S3 Drivers issue.
URL: https://github.com/apache/libcloud/issues/1379#issuecomment-568214155
 
 
   @570096 I suggest you to install the latest stable version of Libcloud (v2.7.0) and then pass ``region=<region name>`` argument to the driver constructor and make sure the region matches the region where the bucket is located.
   
   In v2.7.0, that exception has also been improved so the error now also includes the name of the region where the bucket in question is located.
   
   For example, if your driver is located in the ``us-west-2`` region, you would instantiate a driver like this:
   
   ```python
   cls = get_driver(Provider.S3)
   driver = cls('api key','api secret key', region='us-west-2')
   ```
   
   If you are working with buckets in different regions, you need to use multiple driver instances (one per region).

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