Last active
September 17, 2019 09:11
-
-
Save l1x/b3a57067291f042b067319552baa0abe to your computer and use it in GitHub Desktop.
One liner to print out runtime statistics for the last N Athena queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PROFILE=foxi-maxi | |
export REGION=eu-west-1 | |
aws --region $REGION --profile $PROFILE athena list-query-executions --max-items 10 \ | |
| jq '.QueryExecutionIds[]' \ | |
| xargs -I {} aws --region $REGION --profile $PROFILE athena get-query-execution --query-execution-id {} \ | |
| jq '.QueryExecution.Statistics' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment