fix: required region s3 compatible backup/restore

This commit is contained in:
Revant Nandgaonkar
2020-04-26 22:48:35 +05:30
parent 0c2cf1da50
commit 479ce83f5c
3 changed files with 11 additions and 0 deletions

View File

@@ -121,6 +121,7 @@ def pull_backup_from_s3():
# https://stackoverflow.com/a/54672690
s3 = boto3.resource(
's3',
region_name=os.environ.get('REGION'),
aws_access_key_id=os.environ.get('ACCESS_KEY_ID'),
aws_secret_access_key=os.environ.get('SECRET_ACCESS_KEY'),
endpoint_url=os.environ.get('ENDPOINT_URL')