[
https://issues.apache.org/jira/browse/ARROW-12719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Li resolved ARROW-12719.
------------------------------
Fix Version/s: 5.0.0
Resolution: Fixed
Issue resolved by pull request 10439
[https://github.com/apache/arrow/pull/10439]
> [C++][Python] pyarrow.fs.S3FileSystem pass extra kwargs i.e ACL
> ---------------------------------------------------------------
>
> Key: ARROW-12719
> URL: https://issues.apache.org/jira/browse/ARROW-12719
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++, Python
> Reporter: Ryan Haarmann
> Assignee: Antoine Pitrou
> Priority: Minor
> Labels: pull-request-available
> Fix For: 5.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Is there a way to set specific ACL args to the new written files via the
> S3FileSystem? We have a situation where the writer/read role groups do not
> have access unless specified during the write process.
> Example of how we update with `s3fs`:
> {code:python}
> s3fs.S3FileSystem(
> s3_additional_kwargs={'ACL': 'bucket-owner-full-control'}
> ){code}
> or with `boto`:
> {code:python}
> extra_args.update(\{"ACL": "bucket-owner-full-control"})
> boto3.s3.transfer.S3Transfer(...).upload_file(extra_args=extra_args)
> {code}
> or
> {code:python}
> s3.Object(my_bucket_name, my_key_path).put(Body=my_body,
> ACL='bucket-owner-full-control')
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)