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
asked 24 days ago93 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions