[ECR] [request]: Emit eventbridge events on image PULL
- 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**
Trigger an eventbridge event when an ecr image is pulled. For my specific use case when an archived image is pulled, but the more general event would be preferable.
**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?**
While updating ecr lifecycle policies to migrate images to an archived states based on `sinceImagePulled` I wanted to introduce a lambda that could initiate an auto-restore if an archived image had a pull request issued.
This would be an auto remediation that would reduce the time to recovery from a prematurely archived to less than a minute (not counting how ever long the restore takes).
**Are you currently working around this issue?**
Probably just won't have have the failsafe in place. I imagine there are ecs events that could be hooked into when a service fails to launch a task and could check the specific reason for the specific error message, but that tooling would need to at least partially sprawl across multi-regions/accounts and didn't seem worth the complexity
**Additional context**
nope
**Attachments**
n/a
Contributor guide
Research direction
The request concerns Amazon ECR image pulls and EventBridge, with archived-image auto-restoration as the use case. No repository files, tests, or implementation entry points are mentioned, so start by determining whether this roadmap request has an actionable project entry point. Done would mean an EventBridge event is emitted when an ECR image is pulled, including the archived-image scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100