Can anyone explain the difference and use cases for a tfvars file over a variables.tf file? I am looking into the best way to do a multiple environment terraform config and am having a difficult time understanding what should go in a tfvars file and what should go in a variables.tf file. Currently I have all my variables in a 'variables.tf' file and I am planning to create separate variable files and (remote) state files for each environment. Examples and pointers would be greatly appreciated.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/96aa096a-cc05-41b7-b5ca-6f46d16099dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andrew Langhorn | |
Senior Site Reliability Engineer | |
andrew....@thoughtworks.com | |
![]() |
Can anyone explain the difference and use cases for a tfvars file over a variables.tf file? I am looking into the best way to do a multiple environment terraform config and am having a difficult time understanding what should go in a tfvars file and what should go in a variables.tf file. Currently I have all my variables in a 'variables.tf' file and I am planning to create separate variable files and (remote) state files for each environment. Examples and pointers would be greatly appreciated.
--