Hi Team,
We have a use case that needs to add `--acl bucket-owner-full-control`
whenever we want to upload a file to S3. So if we want to use aws cli, it
will be:

aws s3 cp myfile s3://bucket/path/file --acl bucket-owner-full-control

So to do it in java code, we use (assuming aws s3 sdk v1):

InitiateMultipartUploadRequest.withCannedACL(CannedAccessControlList.BucketOwnerFullControl)

In the beam code below it seems cannedACL is not supported:
https://github.com/apache/beam/blob/95a5c26c4c6d0a1c4155ad209b61e623781c47df/sdks/java/io/amazon-web-services/src/main/java/org/apache/beam/sdk/io/aws/s3/S3FileSystem.java#L485

It's similar in the s3 sdk v2 beam code as well.

Wondering how do I work around this?

Thanks a lot!
-Yushu

Reply via email to