We’re experimenting with TFC and have encountered a couple counterintuitive things that make me wonder if we’re using it right. I’ve searched around for clarification, but hoping someone can shed some light on it for me.
The biggest issue is the way variables are maintained in the UI with no means of grouping or even alphabetical ordering. Is the idea that we should create a separate workspace for any resource that will use variables and just be super rigorous about what order we enter them into the UI?
Otherwise, this just seems to become a giant unmanageable pile of variables. It also seems counterintuitive that this set of variables becomes totally untethered to VCS. At this point, we’ve just gone to using
*.auto.tfvars files instead. Is that what most people do? I suspect I misunderstand how variables are meant to be used, and it would be great if someone could point me to some elucidating materials.
Also worth noting that on the variables UI page, under the Terraform Variables section, it states:
These [Terraform variables] are set using a
terraform.tfvarsfile. To use interpolation or set a non-string value for a variable, click its HCL checkbox.
But, that isn’t actually the case using Terraform Cloud. I realize that there are more explicit statements in the documentation that we were able to figure out, but it might be helpful to clarify that statement. For those of us used to actually using
terraform.tfvars to manage variables, it’s pretty confusing at first blush.
Finally, I’m getting some pushback from my team about being able to run
plans, but not
applies, from their shell for VCS connected workspaces. Can someone help me understand what the rationale is for that?
Thanks very much for any feedback!