Thursday 20 June 2019

Zipping files in S3 bucket and placing them back in the same "folder"

I'm using this node archiver module https://github.com/archiverjs/node-archiver​I've grabbed the example in the README that attempts to create a zip folder in S3 from a simple string (in the "append a file from string" portion). The only differences between my code and the one shown in the README, is that I've changed the variables to make them specific to my environment (i.e. bucket name, /tmp folder to locally store the zip archive, etc.)​I'm running the code on AWS Lambda and the on close events are not being triggered. Does anyone have any ideas as to what I'm doing wrong?

Submitted June 20, 2019 at 06:55PM by BluBarryPi

No comments:

Post a Comment