-
-
Save Selimcse98/94bae73b25250af0f9ab8bf5c5895e9f to your computer and use it in GitHub Desktop.
Revisions
-
pahud revised this gist
Oct 14, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,5 +11,5 @@ awk '{print $2}' | grep -v ^$ | while read x; do echo "deleting $x" ; aws logs ```sh export AWS_DEFAULT_REGION=ap-northeast-1 aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \ awk '{print $2}' | grep ^/aws/lambda | while read x; do echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done ``` -
pahud revised this gist
Oct 14, 2019 . 1 changed file with 12 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,15 @@ # specify the region ```sh export AWS_DEFAULT_REGION=ap-northeast-1 aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \ awk '{print $2}' | grep -v ^$ | while read x; do echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done ``` # only delete loggroup name starting with /aws/lambda ```sh export AWS_DEFAULT_REGION=ap-northeast-1 aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \ awk '{print $2}' | grep ^/aws/lambda$ | while read x; do echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done ``` -
pahud revised this gist
Oct 14, 2019 . 2 changed files with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ ```sh aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \ awk '{print $2}' | grep -v ^$ | while read x; do aws logs delete-log-group --log-group-name $x; done ``` -
pahud created this gist
Apr 29, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | awk '{print $2}' | grep -v ^$ | while read x; do aws logs delete-log-group --log-group-name $x; done