-
Notifications
You must be signed in to change notification settings - Fork 701
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 Requester Pays S3 Buckets #430
Comments
Hi @senorkrabs, thanks for reaching out. I've just added support for requester pays on most functions/features we have (commit above). You just need to pass e.g. wr.s3.to_parquet(
df=df,
path=f"s3://{BUCKET}/test/",
mode="overwrite",
dataset=True,
s3_additional_kwargs={"RequestPayer": "requester"}
)
df = wr.s3.read_parquet(
path=f"s3://{BUCKET}/test/",
dataset=True,
s3_additional_kwargs={"RequestPayer": "requester"}
) P.S. If you face some specific function still w/o resquester pays support, please open a new issue here o GitHub and we will address that. P.P.S. It will be release on version |
Released on version 2.4.0. |
Nice! Thanks for adding this! I recommend this package to everyone! |
I am trying to integrate Sage Maker Data wrangler flow with S3 Bucket (Access point) and getting an error. I dont see an option to pass requestor pay parameter in datawrangler flow. Is it possible? Please note that Sage Maker is in a different account (Consumer) than the S3 Bucket ( Producer Account). |
Is your idea related to a problem? Please describe.
It appears that the s3 methods in Data Wrangler don't support retrieving data in a bucket with Requester Pays enabled.
I verified the below code works non a bucket with Requester Pays disabled, but produces an
AccessDenied
error when it is enabled on the same bucket.Describe the solution you'd like
Add an argument to s3 methods to indicate/acknowledge requester pays in the S3 API request.
P.S. Don't attach files. Please, prefer add code snippets directly in the message body.
The text was updated successfully, but these errors were encountered: