I'm trying to compress the all files keeping the same directory structure that are in the directory on the S3 bucket and put that zip on the S3 bucket.
Unpacking a zip file from the S3 bucket to S3 bucket is quite easy with BytesIO and zipfile, but I'm not sure how to do this with a directory containing a hundred files.
I found this link helpful but the post is for Lambda Node. Create a zip file on S3 from files on S3 using Lambda Node