Tiep
Tiep

Reputation: 81

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.

Upvotes: 8

Views: 7153

Answers (2)

Aaron
Aaron

Reputation: 1605

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).

Upvotes: 10

Asdfg
Asdfg

Reputation: 12213

Of course you can if you are using CLI.

The two CLI commands you should be looking at are put-job-failure-result and put-job-success-result

https://docs.aws.amazon.com/cli/latest/reference/codepipeline/index.html

Upvotes: 1

Related Questions