如何Task将AWS Step Functions中的状态输入传递给输出?
阅读AWS文档中的输入和输出处理页面后,我使用了各种组合InputPath,ResultPath和OutputPath.
州定义:
"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)
我想转发所有这些而不用担心(子)路径.