AWS步骤功能选择无效路径

时间:2019-12-01 18:32:51

标签: json amazon-web-services aws-lambda aws-step-functions

有与此帖子类似的问题: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"
   }
}
}

执行计划错误: enter image description here

0 个答案:

没有答案