💻 Coding
CDKTF Module Dependency Map from HCL Inventory (No Invented Remote State) with example still
Turn a CDKTF HCL inventory into a module dependency map only. No invented remote state, stack outputs, or cloud credentials beyond the inventory.
0Reviews
Prompt
Act as a CDKTF module dependency mapper who only uses a pasted HCL inventory (module stubs, source cues, dependency notes). You write a module dependency map the inventory already supports. You do not invent remote state backends, stack output values, cloud credentials, or secret access keys. This is not a live terraform apply and not a cloud cost quote. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Hcl inventory (module stubs, source cues, dependency notes) I lock: [Inventory] - CDKTF / Terraform provider version notes I lock: [Version] - Project or workspace label I may quote (or UNKNOWN): [Workspace] - Required names I may quote (or UNKNOWN): [SpecNames] - Module names already present (or UNKNOWN): [ModuleNames] - Source cues already present (or UNKNOWN): [SourceCues] - Dependency notes already present (or UNKNOWN): [DepNotes] - Words I must not use: [Banned] - What I must never invent (remote state backends, stack output values, cloud credentials, or secret access keys): [Never] - Output format: [Format] - Language: [Lang] Generate: 1. Honesty ledger: Inventory nouns, Version, Workspace, SpecNames, ModuleNames, SourceCues, DepNotes, Lang. Forbidden: invented remote state backends, stack output values, cloud credentials, or secret access keys. Banner: this is not a live terraform apply and not a cloud cost quote. 2. Module dependency map table: one row per Inventory module stub or source cue. Missing dependency notes write NOT IN INPUTS. Use CDKTF modules, constructs, and stack language when Inventory supports it. Quote ModuleNames and SourceCues only when present. Never print remote-state VALUES not in Inventory. 3. Spec name set: only names in SpecNames. Unnamed items stay NOT IN INPUTS. Never print stack-output or credential VALUES not in Inventory. 4. Version lock: print Version. Refuse CDKTF features newer than Version if Version is named. 5. Refuse list: inventing remote state backends, inventing stack output values, inventing cloud credentials, inventing secret access keys. 6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format. Constraints: - Map from Inventory only. No invented remote-state VALUES. Teach CDKTF module dependency mapping, not a generic Terraform-only or Pulumi 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 net-vpc as pasted source cue ./modules/vpc as pasted dep note needs iam-roles as pasted; module River Ops iam-roles as pasted source cue ./modules/iam as pasted. Remote state invent NONE. Stack output invent NONE. Version: CDKTF 0.20 Terraform 1.9 as pasted (do not invent unreleased AI synthesizer) Workspace: Harbor Quay CDKTF Stack as pasted SpecNames: net-vpc as pasted; iam-roles as pasted. Backend UNKNOWN. ModuleNames: net-vpc as pasted; iam-roles as pasted. data-bucket UNKNOWN. SourceCues: ./modules/vpc as pasted; ./modules/iam as pasted. registry source UNKNOWN. DepNotes: needs iam-roles as pasted. needs kms NOT IN INPUTS. Banned: guaranteed apply, state invent, output invent, key invent Never: invent remote state backends, invent stack output values, invent cloud credentials, invent secret access keys Format: ledger + table + specs + version + refuse + compliance Lang: English
Example Output
1. Ledger. Inventory: module Harbor Quay net-vpc source cue ./modules/vpc dep note needs iam-roles; module River Ops iam-roles source cue ./modules/iam. Remote state invent NONE. Stack output invent NONE. Version CDKTF 0.20 Terraform 1.9. Workspace Harbor Quay CDKTF Stack. SpecNames net-vpc; iam-roles; Backend UNKNOWN. ModuleNames net-vpc; iam-roles; data-bucket UNKNOWN. SourceCues ./modules/vpc; ./modules/iam; registry source UNKNOWN. DepNotes needs iam-roles; needs kms NOT IN INPUTS. Lang English. Banner: not a live terraform apply; not a cloud cost quote. Forbidden: invented remote state backends, stack output values, cloud credentials, secret access keys, guaranteed apply, state invent, output invent, key invent. 2. Module dependency map. 1. Harbor Quay net-vpc | ModuleNames net-vpc as pasted | SourceCues ./modules/vpc as pasted | DepNotes needs iam-roles as pasted | remote state NONE | stack output NONE | CDKTF module dependency map only. 2. River Ops iam-roles | ModuleNames iam-roles as pasted | SourceCues ./modules/iam as pasted | DepNotes beyond needs iam-roles NOT IN INPUTS | remote state NONE | stack output NONE. Backend UNKNOWN so write Backend NOT IN INPUTS. data-bucket not invented beyond ModuleNames. 3. Spec name set. net-vpc; iam-roles as SpecNames. Backend UNKNOWN so write Backend NOT IN INPUTS. No remote-state VALUES beyond Inventory. No third module invented. 4. Version lock. CDKTF 0.20 Terraform 1.9 as pasted. Unreleased AI synthesizer not used. Provider packs NOT IN INPUTS. 5. Refuse. Remote-state invent: refused. Stack-output invent: refused. Credential invent: refused. Access-key invent: refused. Guaranteed apply: refused. 6. Compliance. Banned hits none. Format ledger+table+specs+version+refuse+compliance. Gaps: Backend decision, data-bucket ModuleNames, registry source SourceCues, needs kms DepNotes, Provider packs list 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.