Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
feat: s3 storage configuration changes (#444)
Browse files Browse the repository at this point in the history
* feat: include region name and default acl in s3 storage config (#441)

* chore: fix producer pip requirements
  • Loading branch information
quesebifurcan authored and admbtlr committed Oct 26, 2018
1 parent 78f040a commit c0e7d9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions aether-common-module/aether/common/conf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,12 @@

elif DJANGO_STORAGE_BACKEND == 's3':
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
AWS_STORAGE_BUCKET_NAME = os.environ['BUCKET_NAME']
if not AWS_STORAGE_BUCKET_NAME:
msg = 'Missing BUCKET_NAME environment variable!'
try:
AWS_STORAGE_BUCKET_NAME = os.environ['BUCKET_NAME']
AWS_S3_REGION_NAME = os.environ['AWS_S3_REGION_NAME']
AWS_DEFAULT_ACL = os.environ['AWS_DEFAULT_ACL']
except KeyError as key:
msg = f'Missing {key} environment variable!'
logger.critical(msg)
raise RuntimeError(msg)

Expand Down
4 changes: 2 additions & 2 deletions aether-producer/conf/pip/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Flask==1.0.2
gevent==1.3.7
greenlet==0.4.15
idna==2.7
ItsDangerous==1.0.0
itsdangerous==0.24
Jinja2==2.10
jsonref==0.2
jsonschema==2.6.0
Expand All @@ -31,7 +31,7 @@ monotonic==1.5
msgpack-python==0.5.6
psycogreen==1.0
psycopg2-binary==2.7.5
python-dateutil==2.7.3
python-dateutil==2.7.4
pytz==2018.6
PyYAML==3.13
requests==2.20.0
Expand Down

0 comments on commit c0e7d9a

Please sign in to comment.