{"repo":"shihanng/tfvar","free":true,"listed":false,"github":"https://github.com/shihanng/tfvar","clone":"git clone https://github.com/shihanng/tfvar.git","description":"Terraform's variable definitions template generator.","language":"Go","stars":231,"topics":["terraform","terraform-variables","cli","golang","tfvars","tfvar","terraform-configurations","terraform-templates","go","hcl"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"tfvar tfvar is a Terraform's variable definitions template generator. It scans your Terraform configurations or modules and extracts the variables into formats of your choice for editing, e.g., tfvar, environment variables, etc. For Terraform configuration that has input variables declared, e.g., - tfvar will search for all input variables and generate template that helps user populates those variables easily: - Note that default values are assigned to the definitions by default as shown above. Use the --ignore-default options to ignore the default values. - tfvar also provides other output formats: - In environment variable formats with -e flag: - The -r, --resource flag outputs all variables as tfe variable resource of Terraform Enterprise (tfe) provider. - The -w, --workspace flag outputs all variables in the payload format for the Workspace Variables API which can used together with jq to filter variables by key name. - There is also --auto-assign option for those who wants the values from terraform.tfvars[.json] , .auto.tfvars[.json] , and environment variables ( TF VAR followed by the name of a declared variable) to be assigned to the generated definitions automatically. - Like the terraform (plan apply) CLI tool, individual vairables can also be specified via --var option. - Variables in file can also be specified via --var-file option. - Multiple files can be specified via providing more --var-file options, variables overrides as for terraform command. For more info, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/shihanng","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shihanng/tfvar/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}