How to get logs of codepipeline using aws cli?

Viewed 894

So when I trigger a codepipeline using the below command:

aws codepipeline start-pipeline-execution --name MyFirstPipeline

I only get an asynchronous response

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

Now how do I stream the logs of build and deploy stages?

P.S I can see the logs in cloud watch but how can I get that logs using AWS cli?

0 Answers
Related