💻 Coding
Terraform Module Resource Map from IaC Inventory (No Invented Drift Counts)
Turn a Terraform IaC inventory into a module resource map only. No invented drift counts, apply totals, or coverage percents beyond the inventory.
0Reviews
Prompt
Act as a Terraform module-resource cartographer who only uses a pasted inventory. You write a module resource map the inventory already supports. You do not invent drift counts, apply totals, coverage percents, or billing secrets not in Inputs. This is not a Terraform brand-kit generator; not an infra guarantee. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Inventory I lock (module stubs, resource cues, provider notes): [Inventory] - Terraform / provider version notes I lock: [Version] - Workspace or stack label I may quote (or UNKNOWN): [Workspace] - Required module or map names I may quote (or UNKNOWN): [SpecNames] - Module and path labels already present (or UNKNOWN): [ModuleCues] - Resource and type labels already present (or UNKNOWN): [ResourceCues] - Provider and backend notes already present (or UNKNOWN): [ProviderNotes] - Words I must not use: [Banned] - What I must never invent (drift counts, apply totals, coverage percents, billing secrets): [Never] - Output format: [Format] - Language: [Lang] Generate: 1. Honesty ledger: Inventory nouns, Version, Workspace, SpecNames, ModuleCues, ResourceCues, ProviderNotes, Lang. Forbidden: invented drift counts, apply totals, coverage percents, billing secrets. Banner: not a Terraform brand-kit generator; not an infra guarantee. 2. Module resource map: one numbered row per Inventory stub or cue. Missing ProviderNotes write NOT IN INPUTS. Use Terraform modules, resources, providers, variables, and state language when Inventory supports it. Never print drift-count or apply VALUES not in Inventory. 3. Spec name set: only names in SpecNames. Unnamed rows stay NOT IN INPUTS. Never invent coverage-percent VALUES not in Inventory. 4. Version lock: print Version. Refuse Terraform features newer than Version if Version is named. 5. Refuse list: inventing drift counts, inventing apply totals, inventing coverage percents, inventing billing secrets. 6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format. Constraints: - Map from Inventory only. No invented drift VALUES. Teach Terraform module resource maps, not a Pulumi or CloudFormation 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.

Examples
Example Input
Inventory: module Harbor Quay vpc as pasted resource cue aws_subnet.public as pasted provider notes aws 5.x as pasted; module River Ops redis as pasted resource cue aws_elasticache_cluster.main as pasted. Drift invent NONE. Apply invent NONE. Version: Terraform as pasted (do not invent unreleased AI plan pack) Workspace: Harbor Quay infra desk as pasted SpecNames: vpc module map as pasted; redis module map as pasted. Coverage percents UNKNOWN. ModuleCues: vpc as pasted; redis as pasted. eks UNKNOWN. ResourceCues: aws_subnet.public as pasted; aws_elasticache_cluster.main as pasted. aws_s3_bucket UNKNOWN. ProviderNotes: aws 5.x as pasted. Drift VALUES NOT IN INPUTS. Banned: guaranteed drift-free, drift invent, apply invent, coverage invent Never: invent drift counts, invent apply totals, invent coverage percents, invent billing secrets Format: ledger + table + specs + version + refuse + compliance Lang: English
Example Output
1. Ledger. Inventory: module Harbor Quay vpc as pasted resource cue aws_subnet.public as pasted provider notes aws 5.x as pasted; module River Ops redis as pasted resource cue aws_elasticache_cluster.main as pasted. Drift invent NONE. Apply invent NONE. Version Terraform as pasted. Workspace Harbor Quay infra desk. SpecNames vpc module map as pasted; redis module map as pasted. Coverage percents UNKNOWN. ModuleCues vpc as pasted; redis as pasted. eks UNKNOWN. ResourceCues aws_subnet.public as pasted; aws_elasticache_cluster.main as pasted. aws_s3_bucket UNKNOWN. ProviderNotes aws 5.x as pasted. Drift VALUES NOT IN INPUTS. Lang English. Banner: not a Terraform brand-kit generator; not an infra guarantee. Forbidden: invented drift counts, apply totals, coverage percents, billing secrets, guaranteed drift-free, drift invent, apply invent, coverage invent. 2. Module resource map. 1. Harbor Quay vpc | ModuleCues vpc as pasted | ResourceCues aws_subnet.public as pasted | ProviderNotes aws 5.x as pasted | drift VALUES NONE | apply NONE | Terraform module resource map only. 2. River Ops redis | ModuleCues redis as pasted | ResourceCues aws_elasticache_cluster.main as pasted | ProviderNotes beyond aws 5.x NOT IN INPUTS | drift VALUES NONE | apply NONE. Coverage percents UNKNOWN so write coverage-percent VALUES NOT IN INPUTS. eks not invented beyond ModuleCues. 3. Spec name set. vpc module map as pasted; redis module map as pasted as SpecNames. Unnamed rows NOT IN INPUTS. Never invent coverage-percent VALUES. 4. Version lock. Terraform as pasted as pasted. Refuse unreleased AI plan pack. 5. Refuse list. inventing drift counts; inventing apply totals; inventing coverage percents; inventing billing secrets. 6. Compliance. Quoted Banned: guaranteed drift-free, drift invent, apply invent, coverage invent. Cut. Quoted Never: invent drift counts, invent apply totals, invent coverage percents, invent billing secrets. Cut. Format ledger + table + specs + version + refuse + compliance. 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.