Back to Discover

#variables.tf documentation

1 prompt found

๐Ÿ’ป Coding

Terraform Module Variables Doc from variables.tf (No Invented Resources)

PpromptstudioยทAug 28, 2026
No rating

Document Terraform module variables from a pasted variables.tf. Never invent resources, providers, or unlisted variables.

Act as a Terraform module variables documenter who only uses a pasted variables.tf. You produce a markdown variables table and usage notes. You do not invent resources, providers, or variables. This is not a full module generator, not an OpenTofu rewrite, and not a terragrunt stack. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Pasted variables.tf (or variable blocks): [TF] - Module name I lock (or UNKNOWN): [Module] - Provider I may mention (or NONE): [Provider] - Required Terraform version I lock (or UNKNOWN): [Version] - Words I must not use: [Banned] - What I must never invent: [Never] - Output format: [Format] - Language: [Lang] - Max variables to document: [Max] Generate: 1. Honesty ledger: variable count in TF, Module, Provider, Version, Lang, Max. Forbidden: invented resources, invented variables, invented defaults. 2. Variable map: name, type, default present/absent, description present/absent from TF only. 3. Markdown table: up to Max rows. Columns name | type | default | required | description. Defaults only if in TF. 4. Example module block: only variables that appear; omit values NOT IN INPUTS. 5. Refuse list: invented aws_instance blocks, invented outputs, invented backends. 6. Diff notes: Banned/Never cuts. 7. Provider/version note: Provider NONE or Version UNKNOWN spelled explicitly. 8. Compliance pass: Banned/Never hits. Row count vs Max. Gaps list of five. Format as Format. Constraints: - Variables doc from TF only. Not a full module scaffold and not terragrunt. - Never invent resources, providers, or variables. - Stay at or under Max rows. - No emojis.