I’m not sure if this is the right place to ask, but I did a lot of search and found nothing on the topic besides https://github.com/segmentio/terraform-docs, which doesn’t seem to be what I need since I want to document a custom provider and not terraform configuration/a module.
I’m talking about writing a custom provider as described here: https://www.terraform.io/docs/extend/writing-custom-providers.html
And about documentation like e.g. for the terraform aws provder as can be found here: https://www.terraform.io/docs/providers/aws/index.html
This kind of documentation (what resources do I have, what parameters do they accept, what are their defaults or are they required, computed or deprecated …) already exists in the schema code of the provider.
So I bet there is a tool to extract that information an render a documentation from it.
But I can’t seem to find that bit of information about how to do this and with what tool.
Can anybody help with that?