Serverless example for running a binary

This is a typical use case for me, I need to run a binary over some inputs. Be great if there was such an example at https://github.com/serverless/examples

Since the Google results for lambda running a binary is pretty gnarly. Is this the right way to do it?

 (0, _childProcess.execFile)(_path.join(__dirname, 'ffprobe'), args, opts, cb);

Thanks!

Check out https://serverless.com/blog/building-a-serverless-screenshot-service-with-lambda/

It’s an example of a lambda running a PhanomJS binary file via Node

2 Likes