Use EventBridge input transformer to specify source revision override to CodePipeline source stage

0

We use an EventBridge rule that triggers when a tag (with matching prefix) is added to a CodeCommit git repository. We would like to pass the specific commit ID associated with the triggering tag to the Source step of a CodePipeline. An input transformer on the event rule can get the commit ID with the $.detail.commitId variable reference.

Input path: { "commitId": "$.detail.commitId" } Input template: { "commitId": "<commitId>" }

With V2 pipelines, a specific commit ID can be specified via a source revision override, either via the console or cli: https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-trigger-source-overrides.html

The cli start-pipeline-execution command uses the --source-revisions flag with a value in the format of actionName=Source,revisionType=COMMIT_ID,revisionValue=78a25c18755ccac3f2a9eec099dEXAMPLE.

Can the source revision override mechanism be used with an EventBridge input transformer?

mgauger
已提問 3 個月前檢視次數 93 次
沒有答案

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

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

回答問題指南