Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Add S3 sa-east-1 region. The apache-libcloud>=0.19 added this option. #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions siilo/storages/amazon_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class AmazonS3Storage(ApacheLibcloudStorage):
+--------------------+-------------------------------+
| ``ap-northeast-1`` | Asia Pacific (Tokyo) |
+--------------------+-------------------------------+
| ``sa-east-1`` | South America (Sao Paulo) |
+--------------------+-------------------------------+

Defaults to ``us-east-1``.

Expand Down Expand Up @@ -112,6 +114,7 @@ class AmazonS3Storage(ApacheLibcloudStorage):
'us-east-1': 'S3',
'us-west-1': 'S3_US_WEST',
'us-west-2': 'S3_US_WEST_OREGON',
'sa-east-1': 'S3_SA_EAST',
}

def __init__(self, access_key_id, secret_access_key, bucket,
Expand Down