The release team wants a delivery pipeline to start automatically whenever a new image tag is pushed to a private container registry. What is the native way to wire that up?
Show answer and explanation
Answer: B
Amazon ECR emits image action events, such as a push, to Amazon EventBridge. An EventBridge rule that matches that event and targets CodePipeline starts a pipeline execution each time a new image arrives. Lifecycle rules only expire images, webhooks are attached to source code repositories, and CodeDeploy deploys revisions to compute rather than polling registries.
Why the other options are wrong
- A. Lifecycle rules delete or expire images according to retention criteria. They do not emit events or start anything when an image is pushed.
- C. CodeBuild webhooks attach to source repositories such as GitHub or CodeCommit. They do not listen for pushes to a container registry.
- D. CodeDeploy deploys application revisions to instances, Lambda, or ECS. It does not poll a container registry for new tags.