0

AWSステップ関数で2つの選択肢があるステップ関数を実行しています。AWSステップ関数が条件パス参照エラーを返します

... 
"ChoiceState": { 
    "Type" : "Choice", 
    "Choices": [ 
    { 
     "Variable": "$[0].input", 
     "NumericEquals":1, 
     "Next": "FirstMatchState" 
    }, 
    { 
     "Variable": "$[0].input", 
     "NumericEquals":2, 
     "Next": "SecondMatchState" 
    } 
    ], 
    "Default": "DefaultState" 
}, 
... 

選択状態が

//ChoiceStateEntered 

{ 
"name": "ChoiceState", 
"input": 1 
} 

エラーだけ

{ 
"error": "States.Runtime", 
"cause": "An error occurred while executing the state 'ChoiceState'  (entered at the event id #7). Invalid path '$[0].input': The choice state's condition path references an invalid value." 
} 

答えて

0

を投げ、あなたは$ [0]が、$は必要ありません。この入力に入りました。入力ごとに、$ [0] .inputの代わりに$ .inputを使用する必要があります。

関連する問題