Skip to content

Commit

Permalink
remove colored output from terraform by default
Browse files Browse the repository at this point in the history
I was told this is an issue in our log output, for example here:

https://logs.services.betacloud.xyz/periodic-daily/github.com/osism/testbed/main/testbed-deploy/75b3979/job-output.txt

this can be overriden by overwriting TF_CLI_ARGS

see the upstream docs for details:

https://developer.hashicorp.com/terraform/cli/config/environment-variables#tf_cli_args-and-tf_cli_args_name

if some subcommand does not support this feature, this is considered
a bug and should be reported, according to this message:

hashicorp/terraform#15264 (comment)

Signed-off-by: Sven Kieske <kieske@osism.tech>
  • Loading branch information
artificial-intelligence authored and osfrickler committed Apr 15, 2023
1 parent 2b89562 commit 163d1a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terraform/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ USERNAME = dragon

OPENSTACK = openstack
TERRAFORM ?= terraform
export TF_CLI_ARGS ?= -no-color

PARALLELISM = 10
RESOURCE = openstack_networking_floatingip_v2.manager_floating_ip
Expand Down

0 comments on commit 163d1a1

Please sign in to comment.