This project aims at generating Terraform module documentation.
tfdoc will parse all the files within a module's directory and generate a README.tf accordingly:
```tf
variable "environment" { description = "Variable descriptions will be parsed" }
resource "aws_instance" "this" { # stuff }
resource "awsinstance" "nocomment_here" { # stuff }
output "name" { description = "and within outputs and variables" }
data "aws_ami" "node" {} ```
```sh $ tfdoc $PATHTOMODULE
Top comment prefixed by "Title: " and the following lines will be at the top of the Markdown file
aws_instance.this
: tfdoc keeps comments right on top of resource, variable and output blocks. All variables and outputs are kept. Only resources with comments on top are.environment
: Variable descriptions will be parsedname
: We can have both comments on top and within outputs and variables
```Original idea by https://github.com/jyrivallan