AWS Codepipeline change detection

0

Hi, Is change detection is automatically implemented in AWS Codepipeline so it means when repo is changed, pipeline is started automatically? I tried 2 options: AWS Codepipeline and Eventbridge. But still the pipeline is started automatically. How to do it the way it's not started automatically, can I switch off the detection? Please see a screen. Thank you.Enter image description here

profile picture
質問済み 2年前2415ビュー
2回答
0
承認された回答

Hi,

AWS codePipeline option in change detection does not create any Eventbridge rule but has some internal default to poll for changes. The recommended method is to use AWS Cloudwatch events as change detection option which creates an Event Bridge rule and can be disabled to prevent automatic run on source code updates. Make sure you check for the rule in the correct region

If you are switching from AWS CodePipeline to AWS Cloudwatch detection rule it would prompt you about allowing it to add a CloudWatch Event rule when you finally save it. If you allow, you can then disable the rule in EventBridge in the corresponding region. If you check the box "No resource updates needed for this source action change", it wont create a rule

--Syd

profile picture
Syd
回答済み 2年前
  • Hi @Syd, ok but I need to find the solution how to do it via terraform. But I am now closer to my goal. Strange in Terraform there is no change detection options or I can't find it. Thanks

0
profile pictureAWS
エキスパート
回答済み 2年前
  • Thanks. But this post does not seem to be relevant. Detection option for Cloudwatch event does not generate a rule in Eventbridge automatically. Is AWS only can see it? My repo changes trigger a pipeline but there is no rule in Eventbridge.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ