Ask Your Question
4

How can the details of the get-execution-history be obtained through AWS CLI using the --query option in JMESPath Query?

asked 2023-05-04 08:22:13 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-04 08:44:02 +0000

lalupa gravatar image

The Get-Execution-History API command returns detailed information about a particular execution. You can obtain specific details of this command using AWS CLI by using the --query option with JMESPath Query.

For Example:

aws stepfunctions get-execution-history --execution-arn <EXECUTION-ARN> --query 'events[*].{Name:type, Timestamp:timestamp, EventDetails:details, PreviousEventID:previousEventId}' --output table

In the above example, we are querying the events of an Execution ARN and returning Name, Timestamp, Event Details, and Previous Event ID information in a table format. You can modify the --query option as per your requirement to get the specific details you need.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-04 08:22:13 +0000

Seen: 10 times

Last updated: May 04 '23