1 Answer
- Newest
- Most votes
- Most comments
1
Hi kaung,
Please Try the below script once it will helpfull to you.
"StartTimer": {
"Type": "Task",
"Resource": "arn:aws:states:::states:startExecution",
"Parameters": {
"StateMachineArn": "${TimerArn}",
"Input": {
"AWS_STEP_FUNCTIONS_STARTED_BY_EXECUTION_ID.$": "$$.Execution.Id"
}
},
"Next": "HandleStartExecutionResponse"
},
"HandleStartExecutionResponse": {
"Type": "Pass",
"Result": {
"ExecutionArn.$": "$.ExecutionArn"
},
"ResultPath": "$.StartExecutionResponse",
"Next": "CheckStartExecutionStatus"
},
"CheckStartExecutionStatus": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.StartExecutionResponse",
"IsPresent": true,
"Next": "AssignTask"
},
{
"Variable": "$.StartExecutionResponse",
"IsPresent": false,
"Next": "FailedToStartTimer"
}
]
},
answered 23 days ago
Relevant content
- Accepted Answerasked 2 years ago
- asked 5 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago