Turn binaries into FaaS functions
npm i bin2faas -g
$ bin2faas OPTIONS... BINARYPATHS...
Options
--name <FUNCTIONNAME>
--google Build for Google
--amazon Build for Amazon
$ bin2faas --name myFirstFunc --amazon --google ./helloworld.out
$ cd amazon
$ npm run deploy
# or
$ cd google
$ npm run deploy
When invoking your function, specify the 'commands' field in the payload:
...
commands: [ 'ls -la', './helloworld.out' ],
...
These commands will be executed in sequence.
STDOUT and STDERR will be logged by the FaaS Platform (AWS Logs, GC Logs)
MIT