Skip to content

Commit

Permalink
fix: remove django-storages s3 session profile option
Browse files Browse the repository at this point in the history
  • Loading branch information
jkgeo committed Dec 11, 2024
1 parent f8ebdf5 commit d804eb0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions glam_api/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,8 @@ def gettext(s):
### AWS S3 Storage Settings ###
if USE_S3:

AWS_S3_SESSION_PROFILE = get_env_variable("AWS_S3_SESSION_PROFILE")
if AWS_S3_SESSION_PROFILE is None:
AWS_ACCESS_KEY_ID = get_env_variable("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = get_env_variable("AWS_SECRET_ACCESS_KEY")
AWS_ACCESS_KEY_ID = get_env_variable("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = get_env_variable("AWS_SECRET_ACCESS_KEY")

AWS_STORAGE_BUCKET_NAME = get_env_variable("AWS_STORAGE_BUCKET_NAME")
AWS_S3_CUSTOM_DOMAIN = f"{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com"
Expand Down

0 comments on commit d804eb0

Please sign in to comment.