Last active
March 5, 2019 05:53
-
-
Save harmy/65a3c2897fd23fcfb3d11faac76359d8 to your computer and use it in GitHub Desktop.
delete all the aws cloudwatch logs in one command
This file contains hidden or 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
aws stepfunctions list-executions --state-machine-arn arn:aws:states:us-east-1:415293337666:stateMachine:cpi-prod-install --status-filter RUNNING|jq '.executions[].executionArn'|xargs -L 1 aws stepfunctions stop-execution --execution-arn |
This file contains hidden or 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
aws logs describe-log-groups|jq ".logGroups[].logGroupName" | xargs -L 1 aws logs delete-log-group --log-group-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment