Every Lambda function I have written that touches S3 has the same three lines of plumbing:



s3.download_file(bucket, key, "/tmp/input.csv")
process("/tmp/input.csv", "/tmp/output.csv")
s3.upload_file("/tmp/output.csv", bucket, output_key)






Download. Process. Upload. Clean up /tmp. Handle the edge case where /tmp is full from a previous...