tnc-ca-geo / animl-ingest

Lambda function for processing camera trap images
Other
0 stars 1 forks source link

Try zipping exiftool and perl directly in lambda package #1

Closed nathanielrindlaub closed 4 years ago

nathanielrindlaub commented 4 years ago

see: https://github.com/pplu/perl-aws-lambda/issues/1#issuecomment-351518539

postfalk commented 4 years ago

Yes, the challenge lies to move the executable and all the required header files from /usr/bin or wherever it ends up to a path that is part of the deployment packages and set the path in the lambda function such that it becomes executable. Sometimes this is really complicated and requires a re-compile. Sometimes it is as easy as moving the file. Given the fact that you are able to run this from the /tmp folder you should be able to run it from you deploy package as well. (or is there a permission issue involved you are trying to solve?)

postfalk commented 4 years ago

One more thing on this. It is OK to use some prefix/folder to indicate where images in that bucket go but from there down I would treat any "/" just as part of the prefix. So users would be able to upload/create directories but it would not matter for the pipeline (this path would become part of the original filename and duplicate uploads would just be dealt with via hash).