How do you document variables and outputs for a module?
BeginnerConceptVariables, Locals, Outputs and Types
Answer
Always add description to each, and generate the README table with terraform-docs markdown table ., ideally from a pre-commit hook so docs never go stale. Good descriptions state units, allowed values and defaults' meaning.
More on Variables, Locals, Outputs and Types
How do you declare an input variable?BeginnerIn what order does Terraform load variable values?BeginnerHow do you define an output and what is it for?BeginnerWhat is the difference between locals and variables?BeginnerWhat are the primitive types in Terraform?BeginnerHow do list, set and map differ?Intermediate