Closed DerekTBrown closed 8 months ago
@ysde Let me know if this looks okay, or if I need to make any changes!
I also have a few other PRs in mind (adding an auto-formatter, adding some testing using Tilt + Minio). Let me know if you have plans for the repo I can contribute to!
Does this preserve the original behavior of the s3 download/upload mechanism?
@acjohnson The behavior for existing callers should be identical.
Thank you @DerekTBrown
What does this PR do?
s3_upload.py
was duplicative of the logic ins3_download.py
. This PR consolidates this into a shared file,s3_common.py
.s3_upload
ands3_download
utilities to pull credentials from context if a token is not provided. a. The preferred method for authenticating to AWS within EKS is to use role assumption, as this avoids using long-lived credentials (like AWS tokens). This change is needed to facilitate using this approach.How did I test this?
I am not sure how to test this. Let me know if I need to add tests somewhere.