2 Answers
- Newest
- Most votes
- Most comments
0
If the pipeline execution is stuck and you cannot interrupt it from the console, you can try using the AWS CLI to terminate it.
aws codepipeline stop-pipeline-execution --pipeline-name pipeline-yyyy --pipeline-execution-id xxxxx --abandon
The --abandon flag ensures that the resources created by the execution are left intact, but the execution itself is stopped.
Then, you can manually start a new pipeline execution from the source or staging stage to ensure your latest changes are deployed to production.
aws codepipeline start-pipeline-execution --name pipeline-yyyy
When the pipeline reaches the manual approval step between staging and production, ensure you approve it in a timely manner.
0
What SOLVED: Starting it all over...
I deleted the pipeline and the service and then init the service all over again.
answered 2 years ago
Relevant content
- asked 2 years ago
- asked 4 years ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago

Thanks of the answer. I had tried that before, however without the --abandon . I tried it again as you mentioned but in both cases the response has been that the pipeline "can't be stopped now. Either it does not exist in the pipeline, or the pipeline execution has no action executions in progress.".
I am trying to simply delete the pipeline and start all over again. I will be posting if I get a final result.