aws / aws/aws-sdk-java-v2

Add S3 compatible OutputStream

Open
#3,128 12 comments 102 reactions 0 assignees View on GitHub
feature-request p2
Dominant language
Java
Stars
2.6k
Forks
1k
Avg merge
2d 9h
Merged PRs (30d)
51

Description

### Describe the feature

It would be great if SDK come with S3 compatible implementation of `java.io.OutputStream`. It is a common use case and lots of folks implement the same thing over and over again:

https://github.com/search?l=Java&q=s3outputstream&type=Code

### Is your Feature Request related to a problem?

We're migrating Spring Cloud AWS to SDK v2 and found a need for SDK v2 compatible S3 `OutputStream`.

### Proposed Solution

_No response_

### Describe alternatives you've considered

Upload in chunks: https://github.com/CI-CMG/aws-s3-outputstream/blob/trunk/src/main/java/edu/colorado/cires/cmg/s3out/S3OutputStream.java

Upload first to disk, once upload is over submit complete file to S3: https://github.com/EnjoyLifeFund/macHighSierra-cellars/blob/49a477d42f081e52f4c5bdd39535156a2df52d09/tachyon/0.8.2/libexec/underfs/s3/src/main/java/tachyon/underfs/s3/S3OutputStream.java

### Acknowledge

- [ ] I may be able to implement this feature request

### AWS Java SDK version used

2

### JDK version used

any

### Operating System and version

any

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.