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?

답변 없음

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

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

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

관련 콘텐츠