Replies: 1 comment
-
This would be similar to what is produced on the Terraform Registry for modules. For example: https://registry.terraform.io/modules/digitickets/cli/aws/latest But better. The obvious cheat answer is to have a separately maintained example that gets included. But that's double maintenance. From what I can tell (beginner here so use a pinch of salt), there is no easy way to know if the Terraform I think without something to act as a trigger to say the What may be the best option is to write the template in a standard form for modules to have. And so you just "drop in" the template in modules and terraform-docs uses that as standard. Adding an option to terraform-docs for |
Beta Was this translation helpful? Give feedback.
-
I'm experimenting with generating a sample usage section. I am pretty close, with this:
But, I'm wondering what I can do with the
ModuleName
thing. I don't expect terraform-docs to be able to determine this, but I'd like to be able to pass it (or any arbitrary key/value string pair) to it, to be used in a customcontent
template like this.Is this possible? Has anyone done anything like this before?
Beta Was this translation helpful? Give feedback.
All reactions