0

Is there anything I can configure in Atlantis or Bitbucket in order to have a clean plan? At the moment I can see this in the Bitbucket comments:

enter image description here

All I have done so far is:

  1. terragrunt plan -no-color
    • env: # Reduce Terraform suggestion output name: TF_IN_AUTOMATION value: 'true'

Is anything else I can do?

carlitos081
  • 151
  • 1
  • 13
  • 1
    The codes you've highlighted are terminal control codes, and so the `-no-color` option should have disabled them. However, the output you shared here is from `terraform init` rather than `terraform plan`, so I think you'll need to run `terraform init -no-color` too, or you can set the environment variable `TF_CLI_ARGS=-no-color` to add that option to all Terraform commands you run. – Martin Atkins Jun 26 '23 at 16:09
  • 1
    To hide that _entire warning_ (rather than just the control codes used to color it) you should check the `.terraform.lock.hcl` file into your version control system and configure your automation to run `terraform init -lockfile=readonly`; your lock file should be populated by your developers in their development environments, not dynamically in your automation system. – Martin Atkins Jun 26 '23 at 16:11
  • Thanks @MartinAtkins using `TF_CLI_ARGS=-no-color` solved my issue! Regarding the add `.terraform.lock.hcl` to version control, I'll definitely look into it – carlitos081 Jun 27 '23 at 09:37

0 Answers0