Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
package-lock.json
package.json
readme.md
script.js

readme.md

Install dependencies:

npm ci

Lambda Log groups without lambda function

JSON output:

npx https://github.com/sashee/unused_lambda_logs

Columnar output:

npx https://github.com/sashee/unused_lambda_logs | jq -r 'to_entries | map(.key as $region | .value | map("\($region)\t\(.logGroupName)\t\(.storedBytes)\t\(.retentionInDays)")) | flatten | .[]' | column -t

Without retention set:

npx https://github.com/sashee/unused_lambda_logs | jq -r 'to_entries | map(.key as $region | .value | .[] | select(has("retentionInDays") | not) | "\($region)\t\(.logGroupName)") | .[]'

Stored bytes == 0

npx https://github.com/sashee/unused_lambda_logs | jq -r 'to_entries | map(.key as $region | .value | .[] | select(.storedBytes == 0) | "\($region)\t\(.logGroupName)") | .[]'

You can’t perform that action at this time.