

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 실행 기록에서 스테이지 조건에 대한 규칙 결과 보기
<a name="w2aac19c19c21"></a>

스테이지 조건이 규칙을 실행하고 롤백 또는 실패와 같은 스테이지 결과를 포함한 실행의 규칙 결과를 볼 수 있습니다.

조건 및 규칙의 유효한 상태 값은 다음과 같습니다. `InProgress | Failed | Errored | Succeeded | Cancelled | Abandoned | Overridden` 

## 실행 기록에서 스테이지 조건에 대한 규칙 결과 보기(콘솔)
<a name="w2aac19c19c21b7"></a>

스테이지 조건이 규칙을 실행하고 스테이지 결과를 포함한 실행의 규칙 결과를 콘솔을 사용하여 볼 수 있습니다.

**스테이지 조건에 대한 규칙 결과 보기(콘솔)**

1. 에 로그인 AWS Management Console 하고 [http://console.aws.amazon.com/codesuite/codepipeline/home](https://console.aws.amazon.com/codesuite/codepipeline/home) CodePipeline 콘솔을 엽니다.

   사용자의 AWS 계정 에 연결된 모든 파이프라인의 이름과 상태가 표시됩니다.

1. **이름**에서 확인하려는 파이프라인의 이름을 선택합니다.

1. **기록**을 선택한 다음 실행을 선택합니다. 기록 페이지에서 **타임라인** 탭을 선택합니다. **규칙**에서 실행에 대한 규칙 결과를 확인합니다.

![이전 실행에서 모니터 규칙이 성공했음을 보여주는 타임라인 탭의 예입니다.](http://docs.aws.amazon.com/ko_kr/codepipeline/latest/userguide/images/stage-condition-timeline-tab.png)


## `list-rule-executions`(CLI)로 스테이지 조건에 대한 규칙 결과 보기
<a name="w2aac19c19c21b9"></a>

스테이지 조건이 규칙을 실행하고 스테이지 결과를 포함한 실행의 규칙 결과를 CLI를 사용하여 볼 수 있습니다.
+ 터미널(Linux, macOS, Unix) 또는 명령 프롬프트(Windows)를 열고 AWS CLI 를 사용하여 {{MyPipeline}}이라는 파이프라인에 대해 **list-rule-executions** 명령을 실행합니다.

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

  이 명령은 파이프라인과 연결되어 있는 완료된 모든 규칙 실행의 목록을 반환합니다.

  다음 예제는 규칙의 이름이 {{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."
                  }
              }
          }
  ```