How I can log the deployment script output into aws cloudwatch?

Dimitrios Desyllas - May 11 '20 - - Dev Community

Hello can you help me with that:

https://devops.stackexchange.com/q/11584/4396

What I want is to log the output of each phase of my deployment in aws cloudwach in a similar fashion that aws codebuild does. Therefore by placing extra commands such as ls -l will allow my to have an image of my application on each deployment phase without needing to ssh on each machine in case that something goes wrong.

Do you have any idea how?

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player