Skip to content

Commit

Permalink
Add ap-southeast-2 to aws region specific endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
poornas committed Dec 7, 2017
1 parent b59ff17 commit 2e20efe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ __Parameters__
| | |eu-west-1 |
| | | eu-central-1|
| | | ap-southeast-1|
| | | ap-northeast-1|
| | | ap-southeast-2|
| | | ap-northeast-1|
| | | ap-northeast-2|
| | | sa-east-1|
| | | cn-north-1|

Expand Down
7 changes: 4 additions & 3 deletions minio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@ def make_bucket(self, bucket_name, location='us-east-1'):
Make a new bucket on the server.
Optionally include Location.
['us-east-1', 'us-west-1', 'us-west-2', 'eu-west-1', 'eu-central-1',
'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'sa-east-1',
'cn-north-1']
['us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'eu-west-1',
'eu-west-2', 'ca-central-1', 'eu-central-1', 'sa-east-1',
'cn-north-1', 'ap-southeast-1', 'ap-southeast-2',
'ap-northeast-1', 'ap-northeast-2']
Examples:
minio.make_bucket('foo')
Expand Down
1 change: 1 addition & 0 deletions minio/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def read_full(data, size):
'eu-central-1': 's3-eu-central-1.amazonaws.com',
'ap-south-1': 's3.ap-south-1.amazonaws.com',
'ap-southeast-1': 's3-ap-southeast-1.amazonaws.com',
'ap-southeast-2': 's3-ap-southeast-2.amazonaws.com',
'ap-northeast-1': 's3-ap-northeast-1.amazonaws.com',
'ap-northeast-2': 's3-ap-northeast-2.amazonaws.com',
'cn-north-1': 's3.cn-north-1.amazonaws.com.cn'
Expand Down

0 comments on commit 2e20efe

Please sign in to comment.