leverage icon indicating copy to clipboard operation
leverage copied to clipboard

Bug | File terraform.tfvars being ignored

Open juanmatias opened this issue 2 years ago • 0 comments

Describe the Bug

In TBD scenarios, the file terraform.tfvars is being ignored. On the other hand, files like *.auto.tfvars are not being ignored.

In test with sample Terraform projects, running this:

docker run -it -v $(pwd):/wrk --workdir /wrk --rm binbash/leverage-toolbox:1.2.7-0.1.1-debian plan

...works ok.

Expected Behavior

The file terraform.tfvars has to be read by leverage tf commands.

Steps to Reproduce

Steps to reproduce the behavior: 0. Check the k8s-eks-demoapps nat gateway is not deployed

  1. Go to le-tf-infra-aws/apps-devstg/us-east-1/k8s-eks-demoapps
  2. Run echo "vpc_enable_nat_gateway = true" > ./terraform.tfvars
  3. Run leverage tf plan
  4. The nat gateway creation does not take place

Screenshots

n/a

Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:

  • Leverage CLI: 1.9.1
  • Leverage Toolbox: binbash/leverage-toolbox:1.2.7-0.1.1-debian

Additional Context

n/a

juanmatias avatar Jan 27 '23 15:01 juanmatias