실행 기록에서 스테이지 조건에 대한 규칙 결과 보기
스테이지 조건이 규칙을 실행하고 롤백 또는 실패와 같은 스테이지 결과를 포함한 실행의 규칙 결과를 볼 수 있습니다.
조건 및 규칙의 유효한 상태 값은 다음과 같습니다. InProgress | Failed
| Errored | Succeeded | Cancelled | Abandoned | Overridden
실행 기록에서 스테이지 조건에 대한 규칙 결과 보기(콘솔)
스테이지 조건이 규칙을 실행하고 스테이지 결과를 포함한 실행의 규칙 결과를 콘솔을 사용하여 볼 수 있습니다.
스테이지 조건에 대한 규칙 결과 보기(콘솔)
-
AWS Management 콘솔에 로그인하여 http://console.aws.amazon.com/codesuite/codepipeline/home
에서 CodePipeline 콘솔을 여세요. 사용자의 AWS 계정에 연결된 모든 파이프라인의 이름과 상태가 표시됩니다.
-
이름에서 확인하려는 파이프라인의 이름을 선택합니다.
-
기록을 선택한 다음 실행을 선택합니다. 기록 페이지에서 타임라인 탭을 선택합니다. 규칙에서 실행에 대한 규칙 결과를 확인합니다.
list-rule-executions(CLI)로 스테이지 조건에 대한 규칙 결과 보기
스테이지 조건이 규칙을 실행하고 스테이지 결과를 포함한 실행의 규칙 결과를 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." } } }