💻 Coding

Terraform Module Map from Resource Inventory (No Invented State Counts)

Turn a Terraform resource inventory into a module map only. No invented state counts, plan durations, or cost totals beyond the inventory.

0.0
0Reviews
P
September 9, 2026

Prompt

Act as a Terraform module architect who only uses a pasted resource inventory. You write a module map the inventory already supports. You do not invent state counts, plan durations, cost totals, or apply success rates. This is not a live terraform apply and not a cloud cost audit.
You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs.

Inputs:
- Resource inventory I lock (module stubs, resource cues, status notes): [Inventory]
- Terraform / provider version notes I lock: [Version]
- Project or workspace label I may quote (or UNKNOWN): [Workspace]
- Required module or resource names I may quote (or UNKNOWN): [SpecNames]
- Words I must not use: [Banned]
- What I must never invent (state counts, plan durations, cost totals, apply success rates): [Never]
- Output format: [Format]
- Language: [Lang]

Generate:
1. Honesty ledger: Inventory nouns, Version, Workspace, SpecNames, Lang. Forbidden: invented state counts, plan durations, cost totals, apply success rates. Banner: not a live terraform apply; not a cloud cost audit.
2. Module map table: one row per Inventory module stub or resource cue. Missing status notes write NOT IN INPUTS. Use Terraform modules, resources, variables, outputs, and providers language when Inventory supports it. Never print state-count VALUES not in Inventory.
3. Spec name set: only names in SpecNames. Unnamed modules stay NOT IN INPUTS. Never print plan-duration or cost VALUES not in Inventory.
4. Version lock: print Version. Refuse Terraform features newer than Version if Version is named (no unreleased Stacks AI claims).
5. Refuse list: inventing state counts, inventing plan durations, inventing cost totals, inventing apply success rates.
6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format.

Constraints:
- Map from Inventory only. No invented state-count VALUES. Teach Terraform module mapping, not a generic IaC 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 Map from Resource Inventory (No Invented State Counts) - Result

Examples

Example Input

Inventory: module Harbor Quay berth_network as pasted resource cue aws_vpc as pasted status note draft as pasted; module River Ops lock_compute as pasted resource cue aws_instance as pasted. State count NOT IN INPUTS. Plan duration NONE.
Version: Terraform 1.9.0 aws provider 5.60 as pasted (do not invent unreleased Stacks AI APIs)
Workspace: Harbor Quay Harbor Infra as pasted
SpecNames: berth_network as pasted; lock_compute as pasted. tide_dns UNKNOWN.
Banned: guaranteed state count, plan invent, cost invent, apply invent
Never: invent state counts, invent plan durations, invent cost totals, invent apply success rates
Format: ledger + table + specs + version + refuse + compliance
Lang: English

Example Output

1. Ledger. Inventory: module Harbor Quay berth_network resource cue aws_vpc status note draft; module River Ops lock_compute resource cue aws_instance. State count NOT IN INPUTS. Plan duration NONE. Version Terraform 1.9.0 aws provider 5.60. Workspace Harbor Quay Harbor Infra. SpecNames berth_network; lock_compute; tide_dns UNKNOWN. Lang English. Banner: not a live terraform apply; not a cloud cost audit. Forbidden: invented state counts, plan durations, cost totals, apply success rates, guaranteed state count, plan invent, cost invent, apply invent.

2. Module map.
1. Harbor Quay berth_network | resource aws_vpc as pasted | status draft as pasted | state NOT IN INPUTS | plan NONE | Terraform modules / resources map only. State-count VALUES not printed.
2. River Ops lock_compute | resource aws_instance as pasted | status NOT IN INPUTS | state NOT IN INPUTS | plan NONE.
Cost totals not printed. Apply success rates not invented.

3. Spec name set. berth_network; lock_compute as SpecNames. tide_dns UNKNOWN so write tide_dns NOT IN INPUTS. No state-count VALUES printed. No third module invented.

4. Version lock. Terraform 1.9.0 aws provider 5.60 as pasted. Unreleased Stacks AI APIs not used. backend config schema NOT IN INPUTS.

5. Refuse. State invent: refused. Plan invent: refused. Cost invent: refused. Apply invent: refused. Guaranteed state count: refused.

6. Compliance. Banned hits none. Format ledger+table+specs+version+refuse+compliance. Gaps: status for River Ops lock_compute, tide_dns decision, variable set, output names, provider alias if any.

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...