Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop an execution or set set timeout for an action in AWS CodePipeline?

I'm using aws codepipeline for continues deployment. In some case, I need to stop an execution (is in progress). I tried to search in AWS docs, but seem to doesn't have API for that.

like image 551
Tiep Avatar asked Jun 19 '18 10:06

Tiep


People also ask

What is disable transition in CodePipeline?

Transitions are links between pipeline stages that can be disabled or enabled. They are enabled by default. When you re-enable a disabled transition, the latest revision runs through the remaining stages of the pipeline unless more than 30 days have passed.

How can you automate AWS CodePipeline execution?

Your pipeline runs automatically only when something changes in the source repository and branch that you have defined. Manually: You can use the console or the AWS CLI to start a pipeline manually. For information, see Start a pipeline manually. On a schedule: You can set up a schedule that starts your pipeline.

What does release change do in CodePipeline?

On the pipeline details page, choose Release change. This starts the most recent revision available in each source location specified in a source action through the pipeline.


1 Answers

Updated Answer: https://aws.amazon.com/about-aws/whats-new/2020/01/aws-codepipeline-enables-stopping-pipeline-executions/

Original Answer: * CodePipeline doesn't have an API to stop an execution. * Workaround: you can stop all executions in the pipeline by updating the pipeline (even a no-op update is fine - you just need to rev the version number).

like image 182
Aaron Avatar answered Nov 12 '22 12:11

Aaron