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)
Enter fullscreen mode







