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.

Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas