有与此帖子类似的问题:AWS Step Function returns condition path references error
但是,我仍然遇到相同的错误。
步骤代码:
{
"StartAt": "get_active_facebook_ad_accounts_lambda",
"States": {
"get_active_facebook_ad_accounts_lambda": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"Parameters": {
"FunctionName": "gods_country"
},
"OutputPath": "$.Payload",
"Next": "ChoiceState"
},
"ChoiceState": {
"Type" : "Choice",
"Choices": [
{
"Variable": "$.input",
"NumericEquals": 1,
"Next": "DefaultState"
},
{
"Variable": "$.input",
"NumericEquals": 0,
"Next": "EndState"
}
]
},
"DefaultState": {
"Type": "Fail"
},
"EndState": {
"Type": "Succeed"
}
}
}