Feature Request: Set ECR Lifecycle when deploying a lambda with a docker image
Open
type/feature
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 1.2k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 52
Description
I am following[this guide](https://aws.amazon.com/blogs/compute/using-container-image-support-for-aws-lambda-with-aws-sam/) to create a SAM template that deploys a lambda based on a Dockerfile. However, each `sam deploy` creates a new image, which causes me to pay for multiple old registries until I manually delete them. Is there a way to make a policy to retain only the past five containers, or even better the last 30 days of containers?
Contributor guide
Assessment
This issue has not been assessed yet.