Skip to content

Commit

Permalink
use region (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
dAnjou authored and willmcgugan committed Nov 14, 2017
1 parent 87ecfe4 commit 49cc750
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs_s3fs/_s3fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def s3(self):
if not hasattr(self._tlocal, 's3'):
self._tlocal.s3 = boto3.resource(
's3',
region_name=self.region,
aws_access_key_id=self.aws_access_key_id,
aws_secret_access_key=self.aws_secret_access_key,
aws_session_token=self.aws_session_token,
Expand All @@ -358,6 +359,7 @@ def client(self):
if not hasattr(self._tlocal, 'client'):
self._tlocal.client = boto3.client(
's3',
region_name=self.region,
aws_access_key_id=self.aws_access_key_id,
aws_secret_access_key=self.aws_secret_access_key,
aws_session_token=self.aws_session_token,
Expand Down

0 comments on commit 49cc750

Please sign in to comment.