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
已提問 1 年前檢視次數 643 次
1 個回答
1
已接受的答案

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

profile pictureAWS
專家
已回答 1 年前
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']:

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

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

回答問題指南