Feature request: Prune Old Versions
Open
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
Assessment
This issue has not been assessed yet.