Redirect stdout to s3