Skip to content

Commit

Permalink
docs: info on using aws instance profiles for s3 auth
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 25, 2024
1 parent 3fcb809 commit c9a7942
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/backend/app/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ def s3_client():
settings.S3_SECRET_KEY,
secure=is_secure,
)
# For AWS Instance Profile usage, but doesn't seem to work...
# from minio.credentials import IamAwsProvider
# return Minio(
# "s3.amazonaws.com",
# secure=True,
# credentials=IamAwsProvider()
# )
# NOTE however this seems to generate creds without issue
# provider = IamAwsProvider()
# creds = provider.retrieve()
# print(creds.access_key)
# print(creds.secret_key)


def add_file_to_bucket(bucket_name: str, file_path: str, s3_path: str):
Expand Down

0 comments on commit c9a7942

Please sign in to comment.