AzBuilder / terrakube

Open source IaC Automation and Collaboration Software.
https://docs.terrakube.io
Apache License 2.0
515 stars 44 forks source link

Choose specific tfvars #790

Open ramazulay opened 7 months ago

ramazulay commented 7 months ago

Feature description 💡

Hi, Thanks for the best GitOps IaaC tool. Please make it easy for us, a deployment environment is much needed with a specific tfvar(like flag -var-file=). The best practice is one branch with multiple tfvars in the same folder.

Thanks for the effort.

Anything else?

No response

hfeixas commented 5 months ago

You can do this today... Workspaces support ENV and TF Variables. Which means you could easily configure your workspace with the follwoing TF Variable:

TF_CLI_ARGS_plan --var-file=/environments/.tfvars