AwsDeleteLogGroups

nicolaw 26th November 2019 at 5:45pm
AWS
$ aws logs describe-log-groups --output json \
  | jq -r '.logGroups[]|.logGroupName' \
  | grep -E '[-/]gs-?[0-9]{4,5}' \
  | xargs -n1 -t -P 10 \
    aws logs delete-log-group --log-group-name