Remove any CodePipeline Trigger that autostart the execution

0

Is possible to remove any kind of autostart feature on CodePipeline? I have 2 action in source stage, one from Codecommit and one from S3 and both generate automatically 2 different CloudWatch rules that trigger my pipeline. I also need to remove the autostart at resource creation, actually i'm using terraform to build the pipeline but in the documentation i didn't find anything related. Thanks for help!

demandé il y a un an248 vues
4 réponses
1
Réponse acceptée

For CodeCommit and Amazon S3 Source actions, you are not able to disable change detection through the CodePipeline APIs, SDK, or Terraform. You could manually modify/remove the CloudWatch Events Rule that is created in the EventBridge Console, please only take this course of action if you understand the implications and take a backup.

For GitHub (Version 2) Source actions, you are able to disable change detection by editing the Source configurationProperties and setting DetectChanges to false.

As an alternative, you could add a Manual Approval action to a new Stage following your Source stage. See: AWS documentation on adding a manual approval step.

For Terraform, here is some sample HCL code:

stage {
  name = "Approve"

  action {
    name     = "Approval"
    category = "Approval"
    owner    = "AWS"
    provider = "Manual"
    version  = "1"

    configuration {
    }
  }
}
profile pictureAWS
répondu il y a un an
0

Can you explain what your intended outcome is? CodePipeline is meant to orchestrate events between source repositories/location and CodeBuild. If you do not want that trigger in place, what exactly do you want as the intended outcome?

profile pictureAWS
répondu il y a un an
0

I want a pipeline to be started manually in any case, i need it for development purposes. There is a way to remove this automatic creation of cloudwatch rules that trigger it?

répondu il y a un an
0

Thanks, it's good as workaround.

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions