Documentation
¶
Overview ¶
Package source indexes a stack's Terraform source so a plan resource can be linked to the file:line where it is declared.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index maps (module, type, name) → declaration location.
func Build ¶
Build parses dir's *.tf (root module) plus any local modules listed in dir/.terraform/modules/modules.json, recording each resource block's location relative to repoRoot. Files outside repoRoot, unparseable files, and modules cached under .terraform are skipped. Build never fails: a missing or unreadable tree just yields a sparse index (callers fall back).
Click to show internal directories.
Click to hide internal directories.