Skip to content

Instantly share code, notes, and snippets.

View baartch's full-sized avatar
🐦
In Volo

Andy Brunner baartch

🐦
In Volo
View GitHub Profile
@baartch
baartch / archive.ts
Created March 19, 2024 11:08
AWS Lambda for creating zip archive
// built-ins
import archiver = require('archiver');
import { GetObjectCommand, S3Client } from '@aws-sdk/client-s3';
import { Upload } from '@aws-sdk/lib-storage';
import { PassThrough, Readable } from 'stream';
const clientS3 = new S3Client();
interface IEventBody {
bucket: string;