Stream Uploading Files to S3 with Object Writer

from blog Blog on hjr265.me, | ↗ original
The official AWS SDK provides an upload manager construct that allows you to upload to S3 from any io.Reader. Using it is straightforward, that is until you need to create and upload a potentially large ZIP file. The solution: use the upload manager with a pipe. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 // Open a pipe.