Skip to content
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

pyarrow.fs.S3FileSystem pass extra kwargs i.e ACL #10251

Closed
ryanhaarmann opened this issue May 5, 2021 · 3 comments
Closed

pyarrow.fs.S3FileSystem pass extra kwargs i.e ACL #10251

ryanhaarmann opened this issue May 5, 2021 · 3 comments

Comments

@ryanhaarmann
Copy link

ryanhaarmann commented May 5, 2021

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:

s3fs.S3FileSystem(
    s3_additional_kwargs={'ACL': 'bucket-owner-full-control'}
)

or with boto:

extra_args.update({"ACL": "bucket-owner-full-control"})
boto3.s3.transfer.S3Transfer(...).upload_file(extra_args=extra_args)

or

s3.Object(my_bucket_name, my_key_path).put(Body=my_body, ACL='bucket-owner-full-control')
@westonpace
Copy link
Member

There is no way to do this today but it sounds like a very reasonable feature to suggest. In particular, it should be straightforward to pass a "default" ACL that gets applied to all files created by the filesystem. Can you please create a JIRA?

@ryanhaarmann
Copy link
Author

JIRA issue created
https://issues.apache.org/jira/browse/ARROW-12719

@kou
Copy link
Member

kou commented May 10, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants