tyhahn | 2021-12-06 05:12:35 UTC | #1
Hi,
Is there a plan to support AWS Step Functions (https://aws.amazon.com/step-functions), by any chance? We'd like to take the workflow out of lambda functions and let step functions to do it. That would help make the function code cleaner.
Just tried a step function ARN and got this error:
- Execute: [Lambda error] The error returned from AWS indicates that you did not set your 'Request URL Template' to a AWS Lambda ARN. An example of a Lambda ARN is: ...
Regards, Ty
yuezhong | 2021-12-06 07:06:00 UTC | #2
Genesys data action invoke a lambda, then lambda function invoke the step function from your lambda, you can build a generic lambda function, pass a ARN. so you can invoke any step functions you like.
var aws = require('aws-sdk') module.exports.proxy = (event, context, callback) => { var params = { stateMachineArn: process.env.statemachine_arn, input: JSON.stringify({}) } var stepfunctions = new aws.StepFunctions() stepfunctions.startExecution(params, function (err, data) { if (err) { console.log('err while executing step function') } else { console.log('started execution of step function') } }) }
tyhahn | 2021-12-06 07:06:18 UTC | #3
Ah, that's true. Thanks!
snahta | 2022-01-28 08:51:29 UTC | #5
Hi, I am also having the same issue and found the best answer from AWS site on Amazon.
system | 2022-02-28 08:51:37 UTC | #6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 12848