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."
}