How do you keep module documentation up to date?
BeginnerProductionHCP Terraform, OpenTofu, Scale and Cost
Answer
Run terraform-docs in a pre-commit hook and CI check so the README's inputs, outputs and requirements tables are always generated from code.
terraform-docs markdown table --output-file README.md --output-mode inject .
More on HCP Terraform, OpenTofu, Scale and Cost
How do you design workspaces and projects in HCP Terraform?IntermediateWhat execution modes does HCP Terraform offer?BeginnerWhat are the three run workflows in HCP Terraform?BeginnerHow are variable sets and sensitive variables used?BeginnerHow is HCP Terraform priced, and how does it affect design?IntermediateHow do you choose between HCP Terraform, Atlantis, Spacelift and plain GitHub Actions?Advanced