-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for reading global configuration files #71
Comments
|
Let's say you have multiple projects with different terraform versions for each project, you can specify each terraform version in it's local/current directory.
If you want |
Thank you so much for your quick reaction! I try to keep most of my terraform projects on one version. That's why I think this is a good feature request. But I absolutely agree that it is best practice to have one But back to the feature request: Let’s say I have the following structure:
In case the project has a This also means that |
I would expand on that and would like to see the following path for version identification stopping at the first match
|
I would add that if you're doing hierarchical modules, it would be really nice for it to search parent directories. My company's code is organized in terragrunt fashion, like:
And then repeat for project B and so forth. It would be extremely useful to look for the .tfswitch.toml in the present directory, then work up the parent directories until either we're in ~ or /. This would let me use a new version of tf in test while retaining the known-good version in prod, but not have to have dozens (no exageration) of hidden .tfswitch.toml files lying around. |
will release soon with : #113 |
Currently,
.tfswitch.toml
(and the backwards-compatible.tfswitchrc
) is read only from the current working directory. This is useless for most practical applications.To resolve this, the application should read options from
~/.tfswitch.toml
when those options are not present in a.tfswitch.toml
file in the current directory.The text was updated successfully, but these errors were encountered: