You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/06/01 08:13:00 UTC
[jira] [Commented] (ARROW-12719) [C++][Python]
pyarrow.fs.S3FileSystem pass extra kwargs i.e ACL
[ https://issues.apache.org/jira/browse/ARROW-12719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17354923#comment-17354923 ]
Antoine Pitrou commented on ARROW-12719:
----------------------------------------
Now that ARROW-11161 is in, this should become easier to implement.
> [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
> Priority: Minor
>
> 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)