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
preguntada hace 2 años2415 visualizaciones
2 Respuestas
0
Respuesta aceptada

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
respondido hace 2 años
  • 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
EXPERTO
respondido hace 2 años
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas