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
posta 2 anni fa2416 visualizzazioni
2 Risposte
0
Risposta accettata

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
con risposta 2 anni fa
  • 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
ESPERTO
con risposta 2 anni fa
  • 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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande