💻 Coding

Terraform Module Variable Map from HCL Inventory (No Invented State Serials) with example still

Turn a Terraform HCL inventory into a module variable map only. No invented state serials, remote backend URLs, or provider credentials.

0.0
0Reviews
P
September 13, 2026

Prompt

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.

Instructions

Replace every [bracket] with your details before running. Works on ChatGPT, Claude, and Gemini.

Generated Output

This image was generated using the prompt above.

Terraform Module Variable Map from HCL Inventory (No Invented State Serials) with example still - Result

Examples

Example Input

Inventory: Root harbor-quay as pasted; Module cleat_network as pasted; Variable cleat_cidr as pasted; Output UNKNOWN.
Version: Terraform 1.9 aws 5.x as pasted (do not invent unreleased AI plan APIs)
Workspace: harbor-quay as pasted
Variables: cleat_cidr as pasted; river_az as pasted. vault_token UNKNOWN.
Modules: ./modules/cleat_network as pasted. ./modules/capstan UNKNOWN.
Outputs: cleat_vpc_id as pasted. river_subnet_ids UNKNOWN.
Resources: aws_vpc as pasted. aws_instance UNKNOWN.
Banned: guaranteed state serial, backend invent, credential invent, plan invent
Never: invent state serials, invent remote backend URLs, invent provider credentials, invent plan IDs
Format: ledger + table + modules + version + refuse + compliance
Lang: English

Example Output

1. Ledger. Inventory: Root harbor-quay; Module cleat_network; Variable cleat_cidr; Output UNKNOWN. Version Terraform 1.9 aws 5.x. Workspace harbor-quay. Variables cleat_cidr, river_az. Modules ./modules/cleat_network. Outputs cleat_vpc_id. Resources aws_vpc. Lang English. Banner: not a live terraform apply; not a cloud bill quote. Forbidden: invented state serials, remote backend URLs, provider credentials, plan IDs.

2. Variable map.
1. cleat_cidr | module ./modules/cleat_network as pasted | resource aws_vpc as pasted | state serial NOT IN INPUTS | backend URL NOT IN INPUTS.
2. river_az | module ./modules/cleat_network as pasted | vault_token NOT IN INPUTS.
3. Output stub | UNKNOWN so write Output NOT IN INPUTS.
No invented VALUES beyond Inventory.

3. Module set. ./modules/cleat_network as Modules. ./modules/capstan UNKNOWN so write ./modules/capstan NOT IN INPUTS. Never invent state serials.

4. Version lock. Terraform 1.9 aws 5.x as pasted. Unreleased AI plan APIs not used. river_subnet_ids output UNKNOWN.

5. Refuse. Invented state serials, remote backend URLs, provider credentials, plan IDs: refused.

6. Compliance. Banned hits none. Format ledger+table+modules+version+refuse+compliance. Gaps: Output stub, vault_token var, ./modules/capstan, river_subnet_ids output, aws_instance resource.

Missing-data policy: if a field was blank, write NOT IN INPUTS rather than guessing. Lock any tool version named in Inputs; if unnamed, write unknown. No invented testimonials, star ratings, or press logos. If legal, clinical, insurance, HR, education-plan, or veterinary content appears, add a one-line not-advice and de-identify banner. Quote banned-word hits and cut them. End with a gaps list of five bullets the user still owes you. Character and byte caps in the job are hard; print counts when relevant. Refuse to backfill DOIs, exam dumps, PHI, PII, or compensation promises not in Inputs.

Reviews (0)

Please login to leave a review.
Loading reviews...