💻 Coding

Terraform Workspace Variable Map from Stack Inventory (No Invented State Counts)

Turn a Terraform stack inventory into a workspace variable map only. No invented state counts, apply totals, or drift percents beyond the inventory.

0.0
0Reviews
P
September 20, 2026

Prompt

Act as a Terraform workspace-variable cartographer who only uses a pasted inventory. You write a workspace variable map the inventory already supports. You do not invent state counts, apply totals, drift 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 (stack stubs, workspace cues, variable notes): [Inventory]
- Terraform / provider version notes I lock: [Version]
- Repo or stack label I may quote (or UNKNOWN): [Workspace]
- Required workspace or map names I may quote (or UNKNOWN): [SpecNames]
- Stack and root module labels already present (or UNKNOWN): [StackCues]
- Workspace and env labels already present (or UNKNOWN): [WorkspaceCues]
- Variable and tfvars notes already present (or UNKNOWN): [VarNotes]
- Words I must not use: [Banned]
- What I must never invent (state counts, apply totals, drift percents, billing secrets): [Never]
- Output format: [Format]
- Language: [Lang]

Generate:
1. Honesty ledger: Inventory nouns, Version, Workspace, SpecNames, StackCues, WorkspaceCues, VarNotes, Lang. Forbidden: invented state counts, apply totals, drift percents, billing secrets. Banner: not a Terraform brand-kit generator; not an infra guarantee.
2. Workspace variable map: one numbered row per Inventory stub or cue. Missing VarNotes write NOT IN INPUTS. Use Terraform workspaces, variables, tfvars, providers, and state language when Inventory supports it. Never print state-count or apply VALUES not in Inventory.
3. Spec name set: only names in SpecNames. Unnamed rows stay NOT IN INPUTS. Never invent drift-percent VALUES not in Inventory.
4. Version lock: print Version. Refuse Terraform features newer than Version if Version is named.
5. Refuse list: inventing state counts, inventing apply totals, inventing drift percents, inventing billing secrets.
6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format.

Constraints:
- Map from Inventory only. No invented state VALUES. Teach Terraform workspace variable maps, not a Pulumi or OpenTofu 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 Workspace Variable Map from Stack Inventory (No Invented State Counts) - Result

Examples

Example Input

Inventory: stack Harbor Quay dock-edge as pasted workspace cue dock-prod as pasted var notes edge_cidr as pasted; stack River Ops river-core as pasted workspace cue river-stage as pasted. State invent NONE. Apply invent NONE.
Version: Terraform as pasted (do not invent unreleased AI plan pack)
Workspace: Harbor Quay ops desk as pasted
SpecNames: dock-prod variable map as pasted; river-stage variable map as pasted. Drift percents UNKNOWN.
StackCues: dock-edge as pasted; river-core as pasted. edge-proxy UNKNOWN.
WorkspaceCues: dock-prod as pasted; river-stage as pasted. dock-dev UNKNOWN.
VarNotes: edge_cidr as pasted. State VALUES NOT IN INPUTS.
Banned: guaranteed green, state invent, apply invent, drift invent
Never: invent state counts, invent apply totals, invent drift percents, invent billing secrets
Format: ledger + table + specs + version + refuse + compliance
Lang: English

Example Output

1. Ledger. Inventory: stack Harbor Quay dock-edge as pasted workspace cue dock-prod as pasted var notes edge_cidr as pasted; stack River Ops river-core as pasted workspace cue river-stage as pasted. State invent NONE. Apply invent NONE. Version Terraform as pasted. Workspace Harbor Quay ops desk. SpecNames dock-prod variable map as pasted; river-stage variable map as pasted. Drift percents UNKNOWN. StackCues dock-edge as pasted; river-core as pasted. edge-proxy UNKNOWN. WorkspaceCues dock-prod as pasted; river-stage as pasted. dock-dev UNKNOWN. VarNotes edge_cidr as pasted. State VALUES NOT IN INPUTS. Lang English. Banner: not a Terraform brand-kit generator; not an infra guarantee. Forbidden: invented state counts, apply totals, drift percents, billing secrets, guaranteed green, state invent, apply invent, drift invent.

2. Workspace variable map.
1. Harbor Quay dock-edge | StackCues dock-edge as pasted | WorkspaceCues dock-prod as pasted | VarNotes edge_cidr as pasted | state VALUES NONE | apply NONE | Terraform workspace variable map only.
2. River Ops river-core | StackCues river-core as pasted | WorkspaceCues river-stage as pasted | VarNotes beyond edge_cidr NOT IN INPUTS | state VALUES NONE | apply NONE.
Drift percents UNKNOWN so write drift-percent VALUES NOT IN INPUTS. edge-proxy not invented beyond StackCues.

3. Spec name set. dock-prod variable map as pasted; river-stage variable map as pasted as SpecNames. Unnamed rows NOT IN INPUTS. Never invent drift-percent VALUES.

4. Version lock. Terraform as pasted as pasted. Refuse unreleased AI plan pack.

5. Refuse list. inventing state counts; inventing apply totals; inventing drift percents; inventing billing secrets.

6. Compliance. Quoted Banned: guaranteed green, state invent, apply invent, drift invent. Cut. Quoted Never: invent state counts, invent apply totals, invent drift 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.

Reviews (0)

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