A collection of useful command-line scripts for working with AWS services.
brew install jqSearch AWS Step Functions executions by date and object ID.
Usage:
./search_executions.sh <date> <object_id> <region> <account_id> <profile>Parameters:
date- Execution date in YYYY-MM-DD formatobject_id- Object ID to search for in execution inputsregion- AWS region (e.g., us-east-1, us-west-2)account_id- AWS account IDprofile- AWS CLI profile name
Example:
./search_executions.sh 2025-10-27 65232714 us-east-1 469225647823 my-profileOutput:
For each matching execution, the script displays:
- Execution ARN
- Execution status (RUNNING, SUCCEEDED, FAILED, etc.)
- AWS Console URL for viewing the execution
- Full execution input JSON
Setup:
-
Make the script executable:
chmod +x search_executions.sh
-
Ensure you have the appropriate AWS permissions for:
stepfunctions:ListExecutionsstepfunctions:DescribeExecution
To see your available AWS profiles:
aws configure list-profilesTo configure a new profile:
aws configure --profile profile-nameMIT