Hi Yushu, I’m not sure that we have a workaround for that since the related jira issue [1] is still open.
Side question: are you interested only in multipart version or both? — Alexey [1] https://issues.apache.org/jira/browse/BEAM-10850 > On 9 Mar 2022, at 00:19, Yushu Yao <yao.yu...@gmail.com> wrote: > > 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 > > <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 >