【发布时间】:2020-04-10 12:00:31
【问题描述】:
我正在尝试使用步进函数迭代一小组文件。我调用 lambda 来获取文件列表,作为我的处理循环的输入。
我的输入,进入迭代部分:
{
"name": "ConfigureIterator",
"input": {
"files": {
"count": 3,
"filelist": [
"foo",
"bar",
"fizz"
]
}
}
}
My Pass 状态定义:
"ConfigureIterator": {
"Type": "Pass",
"Result": {
"index": -1,
"step": 1,
"count": "$.files.count"
},
"ResultPath": "$.iterator",
"Next": "Iterator"
}
我想将count 的值从输入复制到通过步骤的结果中。然而,替换不会发生。输出:
{
"name": "ConfigureIterator",
"output": {
"files": {
"count": 11,
"filelist": [
...
]
},
"iterator": {
"index": -1,
"step": 1,
"count": "$.files.count"
}
}
}
通过状态不执行替换吗?我应该改用任务状态吗?如何定义“无所事事”任务状态?
【问题讨论】:
标签: amazon-web-services aws-step-functions