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!

已提問 1 年前檢視次數 248 次
4 個答案
1
已接受的答案

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
已回答 1 年前
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
已回答 1 年前
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?

已回答 1 年前
0

Thanks, it's good as workaround.

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南