Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ANSI Colours AWS CodeBuild Terminal Output

Does anybody know how to enable to ANSI colours int the AWS CodeBuild build logs. I've searched around for this and all I get is a reddit post about how AWS CodeBuild supports colours.

Example Output:

·[0m·[1mInitializing the backend...·[0m
·[0m·[32m
Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.·[0m
·[0m·[1mInitializing provider plugins...·[0m
- Checking for available provider plugins on 

I was expecting to see some green and bold text, instead of the escape codes.

like image 316
razboy Avatar asked Mar 28 '19 23:03

razboy


1 Answers

I thought you'd like to know I wrote a plugin that adds colors back into codebuild logs :) https://github.com/joshuajwilborn/colorize-the-logs I hope you enjoy it!

like image 118
Joshua J Wilborn Avatar answered Nov 16 '22 14:11

Joshua J Wilborn