I have mono repo for the code and separate pipelines for the frontend and backend. How to trigger only the specific pipelines when the code is committed to respective folder in the commit.

0

I have created a mono repo with the seperate folders for the frontend and the backend code. I have separate pipelines for the frontend and backend. How to trigger only the specific aws pipelines when the code is committed to the respective folder in the aws code commit repository.

profile picture
질문됨 일 년 전642회 조회
1개 답변
1
수락된 답변

Hi, you have the solution fully detailled at https://github.com/aws-samples/monorepo-multi-pipeline-trigger

profile pictureAWS
전문가
답변함 일 년 전
profile picture
전문가
검토됨 12일 전
  • Hello Didier,

    Thanks for the answer!

    I have already tried the above solution. I have the cloud watch event that triggers the lambda which in turn is calling the respective pipeline. But the issue that I am facing is due to the event for the "Records" are not published to the lambda as the cloudwatch is not logging this event from the source code commit repository.

    See the below error - [ERROR] KeyError: 'Records' Traceback (most recent call last): File "/var/task/lambda_function.py", line 8, in lambda_handler for record in event['Records']:

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠