-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support optional AWS requester-pays S3 transfer costs configuration #159
Conversation
…da environment to agree to pay all S3 transfer costs
Pre-commit is running locally for me but I am on python 3.9 (not 3.8 like the github runner). I'm sorting through the debug messages in the failed lint action. |
🤷 that I've started a PR over bosth/plpygis#8 but it's unlikely that it will get merged/deploy soon multiple solutions:
|
Thank you for getting these action unblocked @vincentsarago! Since the first bullet worked for the pre-deploy, do you think it'll be safe to just use the same for our deploy on merge and then plan on watching for the merge on you plpygis pr and/or removal of plpygis from pgstac?
|
🥳 bosth/plpygis#7 (comment) plpygis should be fixed soon, let's wait for it |
🤔 tests are now failing because of a pydantic issue in the raster api 🤷
|
@@ -9,6 +9,7 @@ | |||
"titiler.pgstac==0.1.0.a9", | |||
"titiler.application>=0.5,<0.6", | |||
"starlette-cramjam>=0.1.0,<0.2", | |||
"fastapi==0.93.0", |
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.
Comparing logs between 🟢 and 🔴 I saw that the only differences were the FastAPI and Starlette versions. This PR fix FastAPI to the latest working
version.
I'll check in titiler-pgstac if something is broken with FastAPI>=0.94
What
This PR adds optional raster-api configuration to pay all S3 transfer costs. The setting is applied globally to all requests by setting
AWS_REQUEST_PAYER=requester
in the raster-api lambda environment.Why
We want to use data hosted by an external in-region provider that requires that the requester pays S3 transfer costs.
Assumptions
VEDA data read role is already restricted to only in-region buckets so requester pays costs will be negligible.
How tested
Manually deployed the CloudFormation update to the dev stack and confirmed that several raster-api read requests from different buckets were successful.
Further work