-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented S3 integration #23
Conversation
dda6c6a
to
2938f09
Compare
@knikolla The build action currently does not work because the repo is missing a |
See comment above. That file shouldn't be part of container image. |
2938f09
to
dba44b4
Compare
dba44b4
to
7ca35e9
Compare
7ca35e9
to
4664208
Compare
4664208
to
ca2772f
Compare
ca2772f
to
90c4091
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there, just need to clean up the diff from changes that are no longer relevant.
90c4091
to
c852c30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the description and answer the last few comments, and then once Naved gives his OK we can merge.
c852c30
to
5c2ef61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks.
Would like a final sign-off from @naved001 too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly looks good, just a couple of comments. Thanks!
This commit gives the user the option fetch invoices from S3 storage. Several env vars are needed to authenticate to S3 storage. More details on these vars can be found in the function `get_invoice_bucket()` from `process_report.py` Note that the user can provide filenames containing "{}" to inject the invoice month, allowing for some convenient formatting
5c2ef61
to
6d74b3d
Compare
Completing the first half of #21. I modified the invoice script to give the user the option to fetch invoices from S3 storage, as well as to upload them to S3.
The filenames for invoices to be stored locally and in S3 is determined by the user. The script expects several env vars to be sent to perform authentication to S3
The connection to Backblaze B2 is done in the Python script through
boto3
.This PR will be followed-up with a PR to containerize the invoice processing.