"ResultPath":"$.mapOutput"
will prefix mapOutput
to output of the map. and combined input and output will be send as input to following task.
This is input to Step 3:
{
"Comment": "Insert your JSON here",
"inputForMap": [
"iter 1",
"iter2"
],
"mapOutput": [
"iter 1",
"iter2"
]
}
Here is entire definition
{
"StartAt":"Dummy Step 1 Output",
"States":{
"Dummy Step 1 Output":{
"Type":"Pass",
"Result":[
"iter 1",
"iter2"
],
"ResultPath":"$.inputForMap",
"Next":"loop on map"
},
"loop on map":{
"Type":"Map",
"ResultPath":"$.mapOutput",
"Next":"Step three",
"Iterator":{
"StartAt":"Step 2 - Looping on map",
"States":{
"Step 2 - Looping on map":{
"Type":"Pass",
"End":true
}
}
},
"ItemsPath":"$.inputForMap",
"MaxConcurrency":1
},
"Step three":{
"Type":"Pass",
"Next":"End of Step Function"
},
"End of Step Function":{
"Type":"Pass",
"End":true
}
}
}
Step three Input:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…