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 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则