aws / aws/containers-roadmap

[ECR] [request]: Lifecycle cleanup to check if image is active for a Service

Open
#1,036 3 comments 21 reactions 0 assignees View on GitHub
ECR Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**
Want to enhance current feature of lifecycle policy to additionally check if an image/tag is currently live i.e. being mapped with a service in ECS. Based on which it can unmark it for deletion.

**Which service(s) is this request for?**
ECR

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
Attempt is to not loose the docker images/tags from ECR that are currently live. Workaround is possible but hard to manage from outside the current lifecycle policies.

**Are you currently working around this issue?**
Current work around is a python program which purges images older than 30 days which are currently not mapped with any service plus task definition.

Contributor guide

Open the contributing guide

Research direction

No repository files, tests, or entry points are named. Start by reviewing ECR lifecycle policies and how ECS services and task definitions reference image tags; done would mean defining and implementing a supported way to protect images currently used by ECS services from lifecycle cleanup.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.