【发布时间】:2020-04-04 17:23:39
【问题描述】:
以下是 step 函数,它在每一步中触发不同的 lambda 函数。 step 函数从 'first_step' 开始。
{
"Comment": "Step function",
"StartAt": "first_step",
"States": {
"first_step": {
"Type": "Task",
"Resource": "lambda_function1",
"Next": "second_step"
},
"second_step": {
"Type": "Task",
"Resource": "lambda_function2",
"Next": "third_step"
},
"third_step": {
"Type": "Task",
"Resource": "lambda_function3",
"End" : true
}
}
}
现在,我想通过 Lambda 函数从特定步骤 (second_step) 调用步骤函数。 也就是说,一旦我触发另一个 Lambda 函数 (lambda_function4) ,step 函数应该从 second_step 开始执行(跳过 first_step)并一直持续到结束。
另外,我正在使用 Python 创建 Lambda 函数。
【问题讨论】:
标签: python-3.x amazon-web-services aws-lambda aws-step-functions