Skip to content
Software capabilities
AWS Step Functions

Read an AWS Step Functions execution history

Use the AWS CLI or Step Functions API to read events from a standard workflow execution. Keep pagination and execution-data options explicit when processing large histories.

Documentation reviewed · 2 methods with sources

Ways to do it

  1. CLI: aws stepfunctions get-execution-history
  2. API: GetExecutionHistory API action
CLI

aws stepfunctions get-execution-history

Read the events for a Standard Workflow execution. Use --no-include-execution-data to omit the input and output payloads.

Read source: AWS CLI get-execution-history
Requirements
AWS credentials with states:GetExecutionHistory, the execution ARN, and the execution’s Region.
Limitations
This command supports Standard Workflows. To resume truncated CLI output, pass its token back through --starting-token.

Example shell

aws stepfunctions get-execution-history --execution-arn "$EXECUTION_ARN" --no-include-execution-data
API

GetExecutionHistory API action

Request execution events through the Step Functions API and pass nextToken to retrieve another page.

Read source: AWS Step Functions GetExecutionHistory API
Requirements
An AWS client or signed HTTPS request with states:GetExecutionHistory, the execution ARN, and the Region.
Limitations
This action supports Standard Workflows and returns up to 1,000 events per page. Each service nextToken expires after 24 hours.

Example json

{
  "executionArn": "arn:aws:states:us-east-1:111122223333:execution:example-workflow:example-run",
  "includeExecutionData": false,
  "maxResults": 100
}