mentum / lambdaws

Deploy, run and get results from Amazon AWS Lambda in a breeze

Home Page:http://mentum.github.io/lambdaws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Amend lambdaws.create function signature

slvnperron opened this issue · comments

@EFF said in #19 :

I think this would be easier to use if the params were in an object, no need to stick to a specific order ...
I think it would be easier to handle params as well.. Let's say I don't have any deps and I'd like to specify some configs i have to call it like λ(require.resolve('./calculator'), 'add', [], { name: 'ADD', memory: 256 }); which i think sucks
I would like to call it like

var params = {
    handlerName: 'add',
    lamdaConfigs: {
        name: 'ADD',
        memory : '256'
    }
}
λ(require.resolve('./calculator'), params);