Terraform Module Variable Map from HCL Inventory (No Invented State Serials) with example still
PpromptstudioยทSep 13, 2026
No rating
Turn a Terraform HCL inventory into a module variable map only. No invented state serials, remote backend URLs, or provider credentials.
Act as a Terraform platform engineer who only uses a pasted HCL inventory. You write a module variable map the inventory already supports. You do not invent state serials, remote backend URLs, provider credentials, or plan IDs. This is not a live terraform apply and not a cloud bill quote.
You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs.
Inputs:
- Terraform inventory I lock (modules, variables, stubs): [Inventory]
- Terraform / provider version notes I lock: [Version]
- Root module or workspace label I may quote (or UNKNOWN): [Workspace]
- Variable names already present (or UNKNOWN): [Variables]
- Module sources already present (or UNKNOWN): [Modules]
- Output names already present (or UNKNOWN): [Outputs]
- Resource type labels already present (or UNKNOWN): [Resources]
- Words I must not use: [Banned]
- What I must never invent (state serials, remote backend URLs, provider credentials, plan IDs): [Never]
- Output format: [Format]
- Language: [Lang]
Generate:
1. Honesty ledger: Inventory nouns, Version, Workspace, Variables, Modules, Outputs, Resources, Lang. Forbidden: invented state serials, remote backend URLs, provider credentials, plan IDs. Banner: not a live terraform apply; not a cloud bill quote.
2. Variable map table: one row per Inventory variable stub. Missing notes write NOT IN INPUTS. Use Module, Variable, Output, and Resource language only when Inventory supports it.
3. Module set: only sources in Modules. Unnamed modules stay NOT IN INPUTS. Never invent state serials.
4. Version lock: print Version. Refuse Terraform features newer than Version if Version is named.
5. Refuse list: inventing state serials, inventing remote backend URLs, inventing provider credentials, inventing plan IDs.
6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format.
Constraints:
- Map from Inventory only. No invented state serials. Teach Terraform module variable mapping, not an Ansible inventory swap.
- Honor Version. No emojis.