suzujun/AWS Lambda Version Pruner
Prune old AWS Lambda published versions by count and/or age.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| function-name | Target Lambda function name(s). Use a single name or newline-separated multiple names. | yes | — |
| aws-region | AWS region of the target Lambda function. | yes | — |
| keep-latest | Keep latest N published versions. Older versions become candidates. | no | — |
| older-than-days | Select versions older than N days as candidates. | no | — |
| dry-run | If true, only show delete candidates without deleting. | no | false |
| delete-aliased-versions | If true, versions referenced by aliases are also deletable. | no | false |
Outputs
| name | description |
|---|---|
| total-versions | Total published versions considered across all target functions (excluding $LATEST). |
| selected-count | Number of versions selected as deletion candidates across all target functions. |
| deleted-count | Number of versions actually deleted across all target functions. |
| selected-versions | JSON array of selected versions as objects: [{"functionName":"...","version":"..."}]. |
| deleted-versions | JSON array of deleted versions as objects: [{"functionName":"...","version":"..."}]. |