1 Answer
- Newest
- Most votes
- Most comments
0
I tested out approach using CloudWatch and it works. I enabled CloudWatch logging, it logs event TaskStateEntered on start and TaskStateExited on exit. You can create filter on log like { $.type="TaskStateExited"}
Sample CloudWatch log entry
{
"id": "6",
"type": "TaskStateExited",
"details": {
"name": "State1",
"output": "{\"who\":\"amit\",\"taskresult\":{\"statusCode\":200,\"body\":\"\\\"hello from amit\\\"\"}}"
},
"previous_event_id": "5",
"event_timestamp": "1593780767604",
"execution_arn": "arn:aws:states:us-east-1:xxx:execution:MyStateMachine:fa8cfe8f-492d-7e27-7492-6aa20f12fe18"
}
answered 4 years ago
Relevant content
- asked 3 months ago
- Accepted Answerasked a year ago
- asked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 5 months ago