function uploadAndFetch (s3, stream, filename, bucket, key) {
  return new Promise((resolve, reject) => {
    getFileStream(filename)
      .pipe(stream)
      .on('error', reject)
      .on('finish', () => {
        resolve(getObject(s3, bucket, key))
      })
  })
}
Used to upload a file to s3/mocks3 and then subsequently pull down for analysis