I’d suggest streaming to S3 instead of reading the whole file into memory, e.g. using ExAWS.S3.upload/4
ExAWS.S3.upload/4