A possible approach is to use multipart uploads (https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html). This could allow you to map the chunks you receive as input (or some buffered, related object) as multipart chunks for the S3 API.