Skip to content
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

adding Comments to tfvars #11

Open
Rishang opened this issue Sep 15, 2021 · 4 comments
Open

adding Comments to tfvars #11

Rishang opened this issue Sep 15, 2021 · 4 comments

Comments

@Rishang
Copy link

Rishang commented Sep 15, 2021

can you add option to add comments written in variables.tf file to be printed for tfvars

eg:

# say hi
variable "hi" {
type = string
default = "hello"
}

output:

# say hi
hi = "hello"

@shihanng
Copy link
Owner

Hi, thanks for the suggestion. Could you provide more context of the usecase of this feature and what problem are you trying to witht the comment outputs?

@Rishang
Copy link
Author

Rishang commented Sep 20, 2021

For long variables.tf files, containing many variable, it good to sort variables category wise based on resource we create, and put Comments as for categorising variable

so, is same can be done to variable created tfvars file, will be useful

@shihanng
Copy link
Owner

I've given some thoughts about this. One thing we can do is to use the description of variables as a "comment" in the output.

@Rishang
Copy link
Author

Rishang commented Oct 14, 2021

description are good for variable , but comments can be used to categorize a group of variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants