ロールバックステータスの詳細を表示する - AWS CodePipeline

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

ロールバックステータスの詳細を表示する

ロールバック実行のステータスとターゲット実行 ID を表示できます。

詳細ページでロールバックステータスを表示する (コンソール)

コンソールを使用して、ロールバック実行のステータスとターゲットパイプライン実行 ID を表示できます。

のターゲットパイプライン実行 ID フィールドを示すステータスページの例 CodePipeline。

get-pipeline-execution (CLI) を使用してロールバックの詳細を表示する

ロールバックされたパイプライン実行は、パイプライン実行を取得するための出力に表示されます。

  • パイプラインの詳細を表示するには、パイプラインの一意の名前を指定して、get-pipeline-execution コマンドを実行します。例えば、 という名前のパイプラインの詳細を表示するにはMyFirstPipeline、次のように入力します。

    aws codepipeline get-pipeline-execution --pipeline-name MyFirstPipeline --pipeline-execution-id 3f658bd1-69e6-4448-ba3e-79007EXAMPLE

    このコマンドは、パイプラインの構造を返します。

    次の例は、ロールバック実行 ID とメタデータが表示されているMyFirstPipeline、 という名前のパイプラインの一部について返されたデータを示しています。

    { "pipelineExecution": { "pipelineName": "MyFirstPipeline", "pipelineVersion": 6, "pipelineExecutionId": "2004a94e-8b46-4c34-a695-c8d20EXAMPLE", "status": "Succeeded", "artifactRevisions": [ { "name": "SourceArtifact", "revisionId": "<ID>", "revisionSummary": "Added README.txt", "revisionUrl": "<console_URL>" } ], "trigger": { "triggerType": "ManualRollback", "triggerDetail": "arn:aws:sts::<account_ID>:assumed-role/<role>" }, "executionMode": "SUPERSEDED", "executionType": "ROLLBACK", "rollbackMetadata": { "rollbackTargetPipelineExecutionId": "4f47bed9-6998-476c-a49d-e60beEXAMPLE" } } }

get-pipeline-stateCLI) でロールバック状態を表示する

ロールバックされたパイプライン実行は、パイプライン状態を取得するための出力に表示されます。

  • パイプラインの詳細を表示するには、パイプラインの一意の名前を指定して、get-pipeline-state コマンドを実行します。例えば、 という名前のパイプラインの状態の詳細を表示するにはMyFirstPipeline、次のように入力します。

    aws codepipeline get-pipeline-state --name MyFirstPipeline

    次の例は、返されたデータをロールバック実行タイプで示しています。

    { "pipelineName": "MyFirstPipeline", "pipelineVersion": 7, "stageStates": [ { "stageName": "Source", "inboundExecutions": [], "inboundTransitionState": { "enabled": true }, "actionStates": [ { "actionName": "Source", "currentRevision": { "revisionId": "<Revision_ID>" }, "latestExecution": { "actionExecutionId": "13bbd05d-b439-4e35-9c7e-887cb789b126", "status": "Succeeded", "summary": "update", "lastStatusChange": "2024-04-24T20:13:45.799000+00:00", "externalExecutionId": "10cbEXAMPLEID" }, "entityUrl": "console-url", "revisionUrl": "console-url" } ], "latestExecution": { "pipelineExecutionId": "cf95a8ca-0819-4279-ae31-03978EXAMPLE", "status": "Succeeded" } }, { "stageName": "deploys3", "inboundExecutions": [], "inboundTransitionState": { "enabled": true }, "actionStates": [ { "actionName": "s3deploy", "latestExecution": { "actionExecutionId": "3bc4e3eb-75eb-45b9-8574-8599aEXAMPLE", "status": "Succeeded", "summary": "Deployment Succeeded", "lastStatusChange": "2024-04-24T20:14:07.577000+00:00", "externalExecutionId": "mybucket/SampleApp.zip" }, "entityUrl": "console-URL" } ], "latestExecution": { "pipelineExecutionId": "fdf6b2ae-1472-4b00-9a83-1624eEXAMPLE", "status": "Succeeded", "type": "ROLLBACK" } } ], "created": "2024-04-15T21:29:01.635000+00:00", "updated": "2024-04-24T20:12:24.480000+00:00" }