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
asked 2 years ago2378 views
2 Answers
0
Accepted Answer

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
answered 2 years ago
  • 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
EXPERT
answered 2 years ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions