ECR Replica does not trigger ECR Source Stage Event to start Codepipeline execution

0

I have created a Codepipeline with ECR as a piece of my source stage. I also have codebuild which pushes to ECR and tags the latest image with "latest-main" whenever a build completes. Then my pipeline ECR source stage picks up on this event and triggers my pipeline to begin using the event rule as follows:

{
  "source": ["aws.ecr"],
  "detail": {
    "action-type": ["PUSH"],
    "image-tag": ["latest-main"],
    "repository-name": ["authentication"],
    "result": ["SUCCESS"]
  },
  "detail-type": ["ECR Image Action"]
}

This works great for the pipeline in the same region as my ECR repo, however I also have pipelines which look at replicas of the ECR repos (whenever a push occurs to my ECR repo I have a replication policy to replicate from us-east-1 --> eu-central-1). When codebuild pushes to ECR (us-east-1), the replication works and replicates my image to eu-central-1 ECR repository, however, my event rule does not trigger for the replicated region and thus my pipeline does not start.

DBain
已提問 1 個月前檢視次數 133 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南