aws / aws/aws-sam-cli

Feature request: Prune Old Versions

Open
#7,398 4 comments 11 reactions 0 assignees View on GitHub
type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

### Describe your idea/feature/enhancement
We should be able to tell SAM CLI to delete AWS Lambda Older Versions (than the ones being deleted) to prevent Resource Excessive Usage.

### Proposal
Add a property like:
```
DeleteOlderVersions: true
```

Which will set the `RetainPolicy` of the Version to `Delete`

We use SnapStart, so we are somehow "protected" against bad versions.

### Additional Details

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.