Skip to content

iautom8things/tf-vardoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tf-vardoc

Important Note

This is a work-in-progress! It still needs to be "productionalized" by making it into a proper commandline utility.

What is this?

This is a utility for generating documentation regarding Terraform variables.

Why is that important?

  1. The only thing worse than no documentation is stale/incorrect documentation.
  2. A part of defining Terraform variables is self-documentatin; you set variable types, descriptions, and defaults as code.
  3. While you could just read the code, it's good practice to include a README.md for any Terraform module.
  4. This is now a problem if you like to make purdy, stylized READMEs; there's no easy/quick way to transform your variable definitions to documentation.

Until now...

How do I use it?

Create a README.md.j2 jinja2 template. Your variables will be available under the variables variable. Stylize to your hearts content.

TODO

  • make this a proper commandline tool with args and configuration
  • setup pip package
  • distribute

About

Documentation auto-generator for Terraform module variables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published