Skip to content

Instantly share code, notes, and snippets.

View techgyani's full-sized avatar
🎯
Focusing

Bhupendra Singh Thakur techgyani

🎯
Focusing
  • New York
  • 13:21 (UTC -05:00)
View GitHub Profile
@hboylan
hboylan / lambda-s3-read-write-by-line.js
Last active January 6, 2023 18:38
AWS Lambda function to read and write S3 files by line to perform efficient processing
const stream = require('stream')
const readline = require('readline')
const AWS = require('aws-sdk')
const S3 = new AWS.S3()
// read S3 file by line
function createReadline(Bucket, Key) {
// s3 read stream
const input = S3