相关疑难解决方法(0)

AWS Step Functions中的直通输入到输出

如何Task将AWS Step Functions中的状态输入传递给输出?

阅读AWS文档中的输入和输出处理页面后,我使用了各种组合InputPath,ResultPathOutputPath.

州定义:

"First State": {
    "Type": "Task",
    "Resource": "[My Lambda ARN]",
    "Next": "Second State",
    "InputPath": "$.someKey",
    "OutputPath": "$"
}
Run Code Online (Sandbox Code Playgroud)

输入:

{
    "someKey": "someValue"
}
Run Code Online (Sandbox Code Playgroud)

预期结果

我希望输出First State(以及输入Second State)

{
    "someKey": "someValue"
}
Run Code Online (Sandbox Code Playgroud)

实际结果

[empty]
Run Code Online (Sandbox Code Playgroud)

如果输入更复杂,例如

{
    "firstKey": "firstValue",
    "secondKey": "secondValue"
}
Run Code Online (Sandbox Code Playgroud)

我想转发所有这些而不用担心(子)路径.

amazon-web-services aws-step-functions

6
推荐指数
2
解决办法
1629
查看次数