💻 Coding

Terraform Module Workspace Map from Stack Inventory (No Invented Instance Counts)

Build a Terraform module workspace map from a pasted stack inventory only. No invented instance counts, state sizes, or cost totals.

0.0
0Reviews
P
September 25, 2026

Prompt

Act as a Terraform module workspace cartographer who only uses a pasted stack inventory. You map modules to workspaces the inventory already supports. You do not invent instance counts, state file sizes, apply durations, or cloud cost totals. This is not a live terraform apply and not a cost estimator.
You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs.

Inputs:
- Stack inventory I lock (module paths, workspace names, backends): [Inventory]
- Terraform version notes I lock: [Version]
- Root module or repo label I may quote (or UNKNOWN): [RootLabel]
- Workspace names I may quote (or UNKNOWN): [Workspaces]
- Module source paths already present (or UNKNOWN): [ModulePaths]
- Backend or state notes already present (or UNKNOWN): [BackendNotes]
- Variable or tfvars cues already present (or UNKNOWN): [VarCues]
- Words I must not use: [Banned]
- What I must never invent (instance counts, state sizes, apply durations, cost totals): [Never]
- Output format: [Format]
- Language: [Lang]

Generate:
1. Honesty ledger: Inventory nouns, Version, RootLabel, Workspaces, ModulePaths, BackendNotes, VarCues, Lang. Forbidden: invented instance counts, state sizes, apply durations, cost totals.
2. Workspace matrix: rows from Workspaces only. Columns: workspace name, modules referenced (from ModulePaths), backend note, tfvars cue. Empty cells NOT IN INPUTS.
3. Module call sketch: for each ModulePaths entry, list which Workspaces name it. Do not invent module versions not in Inventory.
4. Backend caution block: quote BackendNotes only. If remote backend type is missing, write NOT IN INPUTS; do not invent s3 or azurerm defaults.
5. Refuse list: inventing count=3, inventing 12MB state, inventing 4m apply, inventing $400/mo.
6. Compliance pass: quote Banned and Never hits. Cut them. Print module and workspace counts from Inventory only. Format as Format.

Constraints:
- Module workspace map from Inventory only. No invented instance counts.
- Honor Version. No emojis. Not a live apply.

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 Workspace Map from Stack Inventory (No Invented Instance Counts) - Result

Examples

Example Input

Inventory: module path modules/network/vpc as pasted; module path modules/app/api as pasted; workspace staging as pasted; workspace prod as pasted. Backend note s3 bucket name UNKNOWN. Instance invent NONE.
Version: Terraform 1.9 as pasted (do not invent 1.10 features)
RootLabel: harbor-infra root as pasted
Workspaces: staging as pasted; prod as pasted. Dev workspace UNKNOWN.
ModulePaths: modules/network/vpc as pasted; modules/app/api as pasted. Registry source UNKNOWN.
BackendNotes: remote backend type UNKNOWN; lock table UNKNOWN.
VarCues: staging.tfvars as pasted; prod.tfvars NOT IN INPUTS.
Banned: count=3, $400/mo, guaranteed drift-free
Never: invent instance counts, invent state sizes, invent apply durations, invent cost totals
Format: ledger + matrix + module sketch + backend caution + refuse + compliance
Lang: English

Example Output

1. Ledger. Inventory: modules/network/vpc; modules/app/api; workspace staging; workspace prod. Backend bucket UNKNOWN. Instance invent NONE. Version Terraform 1.9. RootLabel harbor-infra root. Workspaces staging; prod. ModulePaths vpc; api. BackendNotes type UNKNOWN; lock UNKNOWN. VarCues staging.tfvars; prod.tfvars NOT IN INPUTS. Lang English. Forbidden: invented instance counts, state sizes, apply durations, cost totals, count=3, $400/mo, guaranteed drift-free.

2. Workspace matrix.
staging | modules modules/network/vpc, modules/app/api | backend type UNKNOWN | tfvars staging.tfvars as pasted.
prod | modules modules/network/vpc, modules/app/api (paths named; do not invent prod-only modules) | backend type UNKNOWN | tfvars NOT IN INPUTS.
Dev workspace not added.

3. Module call sketch. modules/network/vpc referenced by staging and prod (both Workspaces list stack; no selective exclude in Inventory). modules/app/api same. Module version pins NOT IN INPUTS. Registry source UNKNOWN so do not invent hashicorp/vpc.

4. Backend caution. Remote backend type UNKNOWN. Lock table UNKNOWN. Bucket name UNKNOWN. Do not invent s3 backend HCL. Do not invent azurerm. State size NOT IN INPUTS.

5. Refuse. count=3: refused. 12MB state: refused. 4m apply: refused. $400/mo: refused. Terraform 1.10 feature claim: refused.

6. Compliance. Banned hits none. Modules 2. Workspaces 2. Format ledger+matrix+module sketch+backend caution+refuse+compliance. Gaps: backend type, lock table, bucket name, prod.tfvars, module version pins.

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