lambduh-execute
Execute any shell string or bash script from AWS Lambda
Install
npm i --save lambduh-execute
Usage
var Q = ;var execute = ; //your lambda functionexports { var result = {} ;}
This module takes a script
object that can have a few options:
- a
shell
field for writing a string of unix commands to be executed - a
baseScript
field with a path to the bash script to be executed - a
baseParams
array with params to be passed to the script - a
logOutput
boolean for showing the stdout and stderr logs
logOutput
defaults to false.
The tests in this repo could use enforcement around logOutput
- I'm onto bigger fish for now, will hopefully get back to it.