ericabouaf / aws-swf

Node.js helpers to access the Amazon SWF API
MIT License
74 stars 40 forks source link

Support for lambda task #51

Closed jkucharski closed 7 years ago

jkucharski commented 7 years ago

Updating the aws-sdk dependency to the latest will allow:

decisionTask.response.addDecision({ "decisionType":"ScheduleLambdaFunction", "scheduleLambdaFunctionDecisionAttributes": { "id": "someid", "name": "MyLambdaFunction", "input": "input" } });

This allows calling lambda functions as activities... A real nice feature.

Right now fails because the swf model in the aws-sdk does not include the newer lambda task items (ScheduleLambdaFunction,scheduleLambdaFunctionDecisionAttributes).

Clearly schedule_lambda would be a nice addition to the decision-response module as well.