

# View pipelines and details in CodePipeline
<a name="pipelines-view"></a>

You can use the AWS CodePipeline console or the AWS CLI to view details about pipelines associated with your AWS account. 

**Topics**
+ [View pipelines (console)](pipelines-view-console.md)
+ [View action details in a pipeline (console)](pipelines-view-details-console.md)
+ [View the pipeline ARN and service role ARN (console)](pipelines-settings-console.md)
+ [View pipeline details and history (CLI)](pipelines-view-cli.md)
+ [View rule results for stage conditions in execution history](w2aac19c19c21.md)

# View pipelines (console)
<a name="pipelines-view-console"></a>

You can view status, transitions, and artifact updates for a pipeline.

**Note**  
After an hour, the detailed view of a pipeline stops refreshing automatically in your browser. To view current information, refresh the page.

**To view pipelines**

1. Sign in to the AWS Management Console and open the CodePipeline console at [http://console.aws.amazon.com/codesuite/codepipeline/home](http://console.aws.amazon.com/codesuite/codepipeline/home).

   The **Pipelines** page displays. A list of all your pipelines for that Region are shown.

   The name, type, status, version, creation date, and date when last modified of all pipelines associated with your AWS account are displayed, along with the most recently started execution time.

1. The status for the five most recent executions is shown.  
![\[The console view of the pipelines listing shows the name, status, type, and most recent executions for each pipeline.\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/images/pipelines-view-list.png)

   Choose **View details** next to a specific row to display a details dialog box listing the most recent executions.  
![\[The Most recent executions dialog box shows the five most recent executions for a pipeline.\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/images/pipelines-view-list-details.png)

   To view details about the most recent executions for the pipeline, choose **View history**. For past executions, you can view revision details associated with source artifacts, such as execution IDs, status, start and end times, duration, and commit IDs and messages.
**Note**  
For a pipeline in PARALLEL execution mode, the main pipeline view does not show the pipeline structure or in-progress executions. For a pipeline in PARALLEL execution mode, you access the pipeline structure by choosing the ID for the execution you want to view from the execution history page. Choose **History** in the left navigation, choose the execution ID for the parallel execution, and then view the pipeline on the **Visualization** tab.

1. To see details for a single pipeline, in **Name**, choose the pipeline. A detailed view of the pipeline, including the state of each action in each stage and the state of the transitions, is displayed.  
![\[The console view of the pipeline indicates the state of each action in each stage and the state of the transitions.\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/images/codepipeline-view-pipeline-pol.png)

   The graphical view displays the following information for each stage:
   + The stage name.
   + Every action configured for the stage.
   + The state of transitions between stages (enabled or disabled), as indicated by the state of the arrow between stages. An enabled transition is indicated by an arrow with a **Disable transition** button next to it. A disabled transition is indicated by an arrow with a strikeout under it and an **Enable transition** button next to it.
   + A color bar to indicate the status of the stage:
     + Gray: No executions yet
     + Blue: In progress
     + Green: Succeeded
     + Red: Failed

   The graphical view also displays the following information about actions in each stage:
   + The name of the action.
   + The provider of the action, such as CodeDeploy.
   + When the action was last run.
   + Whether the action succeeded or failed.
   + Links to other details about the last run of the action, where available.
   + Details about the source revisions that are running through the latest pipeline execution in the stage or, for CodeDeploy deployments, the latest source revisions that were deployed to target instances.
   + A **View details** button that opens a dialog box with details about the action execution, logs, and action configuration.
**Note**  
The **Logs** tab is available for CodeBuild and CloudFormation actions that have run in the account of the pipeline.

1. To view the details of the provider of the action, choose the provider. For example, in the preceding example pipeline, if you choose CodeDeploy in either the Staging or Production stages the CodeDeploy console page for the deployment group configured for that stage is displayed.

1. To see the progress for an action is displayed next to an action in progress (indicated by an **In Progress** message). If the action is in progress, you see the incremental progress and the steps or actions as they occur. 

1. To approve or reject actions that have been configured for manual approval, choose **Review**.

1. To retry actions in a stage that were not completed successfully, choose **Retry**.

1. The status from the last time the action ran, including the results of that action (**Succeeded** or **Failed**) is displayed.

# View action details in a pipeline (console)
<a name="pipelines-view-details-console"></a>

You can view details for a pipeline, including details for actions in each stage.

**Note**  
After an hour, the detailed view of a pipeline stops refreshing automatically in your browser. To view current information, refresh the page.

**To view action details in a pipeline**

1. Sign in to the AWS Management Console and open the CodePipeline console at [http://console.aws.amazon.com/codesuite/codepipeline/home](http://console.aws.amazon.com/codesuite/codepipeline/home).

   The **Pipelines** page displays.

1. On any action, choose **View details** to open a dialog box with details about the action execution, logs, and action configuration.
**Note**  
The **Logs** tab is available for CodeBuild and CloudFormation actions.

1. To see the action summary for an action in a stage of a pipeline, choose **View details** on the action, and then choose the **Summary** tab.  
![\[The Summary tab shows information for the action summary.\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/images/details-summary-tab.png)

1. To see the action logs for an action with logs, choose **View details** on the action, and then choose the **Logs** tab.  
![\[The Logs tab shows information for the action logs.\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/images/details-logs-tab.png)

1. To see the configuration details for an action, choose the **Configuration** tab.  
![\[The Configuration tab shows information for the action configuration.\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/images/details-configuration-tab.png)

# View the pipeline ARN and service role ARN (console)
<a name="pipelines-settings-console"></a>

You can use the console to view pipeline settings, such as the pipeline ARN, the service role ARN, and the pipeline artifact store.

1. Sign in to the AWS Management Console and open the CodePipeline console at [http://console.aws.amazon.com/codesuite/codepipeline/home](http://console.aws.amazon.com/codesuite/codepipeline/home).

   The names of all pipelines associated with your AWS account will be displayed. 

1. Choose the name of your pipeline, and then choose **Settings** in the left-hand navigation pane. The page shows the following:
   + The pipeline name
   + The pipeline Amazon Resource Name (ARN)

     The pipeline ARN is constructed in this format: 

     arn:aws:codepipeline:*region*:*account*:*pipeline-name*

     Sample pipeline ARN:

     `arn:aws:codepipeline:us-east-2:80398EXAMPLE:MyFirstPipeline`
   + The CodePipeline service role ARN for your pipeline
   + The pipeline version
   + The name and location of the artifact store for the pipeline

# View pipeline details and history (CLI)
<a name="pipelines-view-cli"></a>

You can run the following commands to view details about your pipelines and pipeline executions:
+  **list-pipelines** command to view a summary of all of the pipelines associated with your AWS account.
+ **get-pipeline** command to review details of a single pipeline.
+ **list-pipeline-executions** to view summaries of the most recent executions for a pipeline.
+ **get-pipeline-execution** to view information about an execution of a pipeline, including details about artifacts, the pipeline execution ID, and the name, version, and status of the pipeline. 
+ **get-pipeline-state** command to view pipeline, stage, and action status.
+ **list-action-executions** to view action execution details for a pipeline. 

**Topics**

1. Open a terminal (Linux, macOS, or Unix) or command prompt (Windows) and use the AWS CLI to run the **[list-pipelines](http://docs.aws.amazon.com/cli/latest/reference/codepipeline/list-pipelines.html)** command:

   ```
   aws codepipeline list-pipelines
   ```

   This command returns a list of all of the pipelines associated with your AWS account.

1. To view details about a pipeline, run the **[get-pipeline](http://docs.aws.amazon.com/cli/latest/reference/codepipeline/get-pipeline.html)** command, specifying the unique name of the pipeline. For example, to view details about a pipeline named *MyFirstPipeline*, enter the following:

   ```
   aws codepipeline get-pipeline --name MyFirstPipeline
   ```

   This command returns the structure of the pipeline.

# View rule results for stage conditions in execution history
<a name="w2aac19c19c21"></a>

You can view the rule results for an execution where a stage condition ran a rule and engaged a result for the stage, such as rollback or failure.

Valid status values for conditions and rules are as follows: `InProgress | Failed | Errored | Succeeded | Cancelled | Abandoned | Overridden`

## View rule results for stage conditions in execution history (console)
<a name="w2aac19c19c21b7"></a>

You can use the console to view the rule results for an execution where a stage condition ran a rule and engaged a result for the stage.

**View rule results for stage conditions (console)**

1. Sign in to the AWS Management Console and open the CodePipeline console at [http://console.aws.amazon.com/codesuite/codepipeline/home](http://console.aws.amazon.com/codesuite/codepipeline/home).

   The names and status of all pipelines associated with your AWS account are displayed.

1. In **Name**, choose the name of the pipeline you want to view.

1. Choose **History**, and then choose the execution. On the history page, choose the **Timeline** tab. Under **Rules**, view the rule results for the execution.

![\[An example Timeline tab showing the monitor rule as successful in the previous run.\]](http://docs.aws.amazon.com/codepipeline/latest/userguide/images/stage-condition-timeline-tab.png)


## View rule results for stage conditions with `list-rule-executions` (CLI)
<a name="w2aac19c19c21b9"></a>

You can use the CLI to view the rule results for an execution where a stage condition ran a rule and engaged a result for the stage.
+ Open a terminal (Linux, macOS, or Unix) or command prompt (Windows) and use the AWS CLI to run the **list-rule-executions** command for a pipeline named *MyPipeline*:

  ```
  aws codepipeline list-rule-executions --pipeline-name MyFirstPipeline 
  ```

  This command returns a list of all of the completed rule executions associated with the pipeline.

  The following example shows the returned data for a pipeline with a stage condition where the rule is named *MyMonitorRule*.

  ```
  {
      "ruleExecutionDetails": [
          {
              "pipelineExecutionId": "e1a7e739-f211-420e-aef9-fa7837666968",
              "ruleExecutionId": "3aafc0c7-0e1c-44f1-b357-d1b16a28e483",
              "pipelineVersion": 9,
              "stageName": "Deploy",
              "ruleName": "MyMonitorRule",
              "startTime": "2024-07-29T15:55:01.271000+00:00",
              "lastUpdateTime": "2024-07-29T15:56:08.682000+00:00",
              "status": "Succeeded",
              "input": {
                  "ruleTypeId": {
                      "category": "Rule",
                      "owner": "AWS",
                      "provider": "CloudWatchAlarm",
                      "version": "1"
                  },
                  "configuration": {
                      "AlarmName": "CWAlarm",
                      "WaitTime": "1"
                  },
                  "resolvedConfiguration": {
                      "AlarmName": "CWAlarm",
                      "WaitTime": "1"
                  },
                  "region": "us-east-1",
                  "inputArtifacts": []
              },
              "output": {
                  "executionResult": {
                      "externalExecutionSummary": "Succeeded with alarm 'CWAlarm' being i
  n an 'OK' state."
                  }
              }
          }
  ```