AWS CodePipeline
User Guide (API Version 2015-07-09)

Manually Rerun a Pipeline in AWS CodePipeline

By default, a pipeline runs automatically any time a change is made in a source repository. However, you might want to rerun the most recent revision through the pipeline a second time. You can use the AWS CodePipeline console or the AWS CLI and start-pipeline-execution command to manually rerun the most recent revision through your pipeline.

Manually Rerun a Revision Through a Pipeline (Console)

To manually rerun the most recent revision through a pipeline

  1. Sign in to the AWS Management Console and open the AWS CodePipeline console at

  2. In Name, choose the name of the pipeline you want to rerun. This opens a detailed view of the pipeline, including the state of each of the actions in each stage of the pipeline.

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

Manually Start a Pipeline ( CLI)

To manually start running your pipeline using the AWS CLI, use the start-pipeline-execution command.

To run the most recent version of an artifact through a pipeline

  1. Open a terminal (Linux, macOS, or Unix) or command prompt (Windows) and use the AWS CLI to run the start-pipeline-execution command, specifying the name of the pipeline you want to manually run. For example, to manually start running the last change through a pipeline named MyFirstPipeline:

    aws codepipeline start-pipeline-execution --name MyFirstPipeline

  2. View the returned object to verify success. This command returns an ExecutionID object, similar to the following:

    { "pipelineExecutionId": "c53dbd42-This-Is-An-Example" }


    After you have started running the pipeline, you can either view the pipeline in the AWS CodePipeline console or run the get-pipeline-state command to monitor its progress. For more information, see View a Pipeline (Console) and View a Pipeline (CLI).