My AWS lambda function check-version-lambda returns
{"latest": "yes"} or {"latest": "no"}.
I have the AWS step function below, to pass above result to next state.
The next state process_version is a choice state, how do I retrieve the input inside Choices? What to fill in for <???>?
{
"StartAt": "check_version",
"States": {
"check_version": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:000:function:check-version-lambda",
"OutputPath": "$.latest",
"Next": "process_version"
},
"process_version": {
"Type": "Choice",
"Choices": [
{
"Variable": "<???>",
"StringEquals": "yes",
"Next": "next_state"
},
{
"Variable": "<???>",
"StringEquals": "no",
"Next": "next_state"
}
],
"Default": "next_state"
}
}
}