[ 
https://issues.apache.org/jira/browse/ARROW-12719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17342098#comment-17342098
 ] 

Weston Pace commented on ARROW-12719:
-------------------------------------

Would it be sufficient to specify the ACL at the filesystem level (as you are 
doing with s3fs) so that all files created by that filesystem get the same ACL? 
 In that case I don't think we'd need to modify `FileSystem::OpenOutputStream`.

> [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)

Reply via email to