pltf terraform graph
Generate a DOT graph for a spec (terraform graph or spec dependency graph)
Synopsis
Render Terraform (if needed) and produce a DOT graph. By default runs 'terraform graph' against the generated stack. With --mode=spec, emits a dependency graph from the env/service YAML (links and module references) without invoking Terraform.
Examples
pltf terraform graph -f env.yaml -e dev > graph.dot
pltf terraform graph -f service.yaml -e dev --mode=spec --out-file=spec.dot
Options
-e, --env string Environment key to render (dev, prod, etc.)
-f, --file string Path to the Environment or Service YAML file (default "env.yaml")
-h, --help help for graph
--mode string Graph mode: terraform (runs 'terraform graph') or spec (builds module dependency graph from YAML) (default "terraform")
-m, --modules string Override modules root; defaults to embedded modules
-o, --out string Output directory for generated Terraform (for terraform mode)
--out-file string Write DOT output to a file instead of stdout
-P, --plan-file string Use an existing plan file for terraform graph (passed as -plan=...)
-v, --var stringArray Override variable as key=value; merges over vars and supports bool/int/JSON/list parsing. Used for terraform mode generation.
Options inherited from parent commands
--telemetry Enable anonymous telemetry (usage metrics). Currently a stub/no-op unless enabled.
-V, --verbose Enable verbose logging
SEE ALSO
- pltf terraform - Terraform helpers (generate+init+tf commands)