Created
July 19, 2018 22:25
-
-
Save skyzyx/796405d62d24b1c51787e12c8b5ed22c to your computer and use it in GitHub Desktop.
Remove all #CloudWatch Log Groups for #Lambda functions forwarding to #SumoLogic
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
for lg in $(aws logs describe-log-groups --query "logGroups[?logGroupName | contains(@, 'aws/lambda/sumologic')].logGroupName" --output text); do | |
echo "$lg"; | |
aws logs delete-log-group --log-group-name "$lg"; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment