Intercepting ECS CloudWatch Logs

Idea

The problem occurs if I run 20 or more tasks in my binary pipeline. I know something is working and even progressing, but I do not want to see just ECS task started and complete messages. I don’t want to check logs manually in the AWS CloudWatch neither. But I want to see all the logs happening in ECS container and aggregate them back in my master process.

Solution

I changed the ECS task in pipeline to not just wait, but to wait and pull available logs and write it back to the logger as local log entry. The change was simple and turned out to be working as expected.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adrian Macal

Adrian Macal

Software Developer, Data Engineer with solid knowledge of Business Intelligence. Passionate about programming.