State Machine times-out on Choicelg...
I updated my state machine to use a task token and now it's timing out when it gets to the choice. This was previously working, and the cloudwatch logs for the first supportticketparse lambda function aren't indicating that anything is wrong. My guess is that I have and error in the payload definition, but I'm not sure. Is anything obviously wrong with the definition? If not, where else can I look for a potential problems?
```
{
"Comment": "A description of my state machine",
"StartAt": "zen sort",
"TimeoutSeconds": 60,
"States": {
"zen sort": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke.waitForTaskToken",
"OutputPath": "$.Payload",
"Parameters": {
"FunctionName": "arn:aws:lambda:us-east-1:363540650061:function:support-ticket-parse:$LATEST",
"Payload": {
"ExecutionContext.$": "$$",
"APIGatewayEndpoint": "https://9084s1lza7.execute-api.us-east-1.amazonaws.com/test/",
"Payload.$": "$"
}
},
"Next": "Choice"
},
"Choice": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.name",
"StringMatches": "New User Account ",
"Next": "send email"
},
{
"Not": {
"Variable": "$.name",
"StringMatches": "New User Account "
},
"Next": "Fail"
}
],
"Default": "Fail"
},
"send email": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke.waitForTaskToken",
"OutputPath": "$.Payload",
"Parameters": {
"FunctionName": "arn:aws:lambda:us-east-1:363540650061:function:send_email:$LATEST",
"Payload": {
"ExecutionContext.$": "$$",
"APIGatewayEndpoint": "https://9084s1lza7.execute-api.us-east-1.amazonaws.com/test/",
"Payload.$": "$"
}
},
"Retry": [
{
"ErrorEquals": [
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException"
],
"IntervalSeconds": 2,
"MaxAttempts": 6,
"BackoffRate": 2
}
],
"End": true
},
"Fail": {
"Type": "Fail"
}
}
}
```lg...