I am observing that my Step Function map is not passing input to the the task's lambda. Does anyone know how to fix this? When I run the step function, I can see the input is being correctly passed to the task, but nothing shows for the event variable in the lambda function.
"push_stats_to_prometheus": {
"Type": "Map",
"InputPath": "$.Payload",
"ItemsPath": "$.body",
"MaxConcurrency": 10,
"Iterator": {
"StartAt": "push_stats",
"States": {
"push_stats": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"Parameters": {
"FunctionName": "${self:functions.push_stats_to_prometheus.name}"
},
"End": true
}
}
},
"ResultPath": "$.Payload.body",
"Next": "push_score_to_prometheus"
}