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.
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.
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.
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.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With