-
Notifications
You must be signed in to change notification settings - Fork 20
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
Creating vars.tf entries automatically #31
Labels
enhancement
New feature or request
Comments
Thank you for the suggestion. Currently, this tool looks for variable blocks and extracts the information. If we'd implement something like the above, we'd need to do it "in reverse"? It'd be like asking an editor to perform autocompletion on a variable declaration based on its usage. It does seem very interesting, and I am happy to accept PR for this feature. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be great if this tool allowed to avoid the painful process (ok, I'm lazy) of adding variable block definitions each time a new variable is referenced in a config.
e.g. if we have a file main.tf in the config like:
resource aws_instance example {
ami = var.ami
...
}
Would check to see if a variable definition exists already for ami and if not add this to a tfvar_vars.tf file.
Options:
The text was updated successfully, but these errors were encountered: