无论如何,我是否可以将自定义变量作为输入传递给 AWS 步进函数?
processData:
name: ingest-data
StartAt: Execute
States:
Execute:
Type: Task
Resource: "arn:aws:lambda:#{AWS::Region}:#{AWS::AccountId}:function:#{AWS::StackName}-ingestIntnlData"
Next: Check
Check:
Type: Choice
Choices:
- Variable: "$.results['finished']"
BooleanEquals: false
Next: Wait
- Variable: "$.results['finished']"
BooleanEquals: true
Next: Notify
Wait:
Type: Wait
SecondsPath: "$.waitInSeconds"
Next: Execute
Notify:
Type: Task
Resource: "arn:aws:lambda:#{AWS::Region}:#{AWS::AccountId}:function:#{AWS::StackName}-sendEMail"
End: true
我有两个不同的阶梯函数,它们调用相同的 lambda。我希望将自定义变量传递给 lambda,以区分从两个步骤函数进行的调用。
像标志变量之类的东西,或者即使有办法找出调用 lambda 的函数的名称,也应该足够了。
请帮帮我