lambda_deploy.<something>.options.handler ignored
Closed this issue · 1 comments
toburn commented
Hi!
I want a setup where I have multiple different javascript files in my project. The different files export one handler each. I deploy the same package to different lambda functions which calls the different handlers. Unfortunately it seems that...
lambda_deploy..options.handler
...is ignored.
Example:
I setup my Gruntfile.js like this:
lambda_deploy: {
default: {
arn: '<here goes my default function arn>',
options: {
// Task-specific options go here.
}
},
helloWorld: {
arn: '<here goes my helloWorld function arn>',
options: {
handler: 'helloWorld.handler'
}
}
}
It seems to work if I add this code to lambda_deploy.js:
if (options.handler !== null) {
configParams.Handler = options.handler;
}
toburn commented
Ooops! My bad! Wasn't on latest version...