My application involves creating a file in S3 bucket on every successful request completion. I want to run a shell script as soon as file is uploaded. Shell script can be something like mv file1 file2 (It won't be rename, I have something to do with zipping file and fixing it but it will be a shell command and nothing else like zip -FFv final.zip --out fixed.zip).
Is it possible through AWS-Lambda?
If Yes, will it involve copying file to some other location, perform the operation and upload back to S3 or it will be directly executed on S3 itself as My files are of large sizes (20 GB or so)