When running an AWS Lambda in synchronous mode from a Step Function, you will get the Lambda's return value in the output's Payload part. But unfortunately, you might also get some mostly useless information as well:
{
"ExecutedVersion": "$LATEST",
"Payload": {
"result": "value"
},
"SdkHttpMetadata": {},
"HttpHeaders": {}
}
When browsing your Step Functions's output, that's a lot of noise. So to keep only the lambda's payload part, you can add this line in your task definition:
"ResultSelector": { "Payload.$": "$.Payload" }
Keep only the good stuff!