0
votes

When deploying a terraform task via Azure, the resulting logs dont display the resource symbols correctly.

2020-03-16T22:19:21.4807821Z An execution plan has been generated and is shown below.
2020-03-16T22:19:21.4808173Z Resource actions are indicated with the following symbols:
2020-03-16T22:19:21.4808433Z   [32m+[0m create
2020-03-16T22:19:21.4808648Z   [33m~[0m update in-place
2020-03-16T22:19:21.4808823Z [0m
2020-03-16T22:19:21.4809040Z Terraform will perform the following actions:

Wondering if its possible to get the correct symbols instead of the 32m+, etc.

Azure release logs

2

2 Answers

1
votes

You're seeing ANSI codes, setting your Git Bash terminal to support xterm-256color is one way to see these (usually invisible) codes.

1
votes

To fix those weird characters just use the -no-color option on your plan and apply steps!

Setting the -no-color option

And after it was fixed:

And for reference those weird values represent colors of the terminal - see: https://github.com/shiena/ansicolor/blob/master/README.md

No-Color option: https://www.terraform.io/docs/commands/plan.html#no-color