Documentation ¶
Overview ¶
Package terradep allows to scan directories containing terraform deployments (main modules) with defined backend.
It detects resource terraform_remote_state in other deployments and builds dependency graph. This allows to visualize dependencies in your deployments and plan especially when you organize your code in Terraservices setup and you need orchestrating layer over Terraform.
terradep can represent your dependency graph in two formats:
- Graphviz DOT - which can be piped to graph-easy to generate SVG, PNG or ASCII output
- JSON Lines (mostly for debugging)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct { // Heads are Nodes which represent Terraform deployments without dependencies to other states Heads []*Node }
Graph is acyclic directed graph showing dependencies between Terraform states
type S3State ¶
type S3State struct { // Bucket is name of S3 bucket Bucket string // Bucket key of the object in S3 bucket Key string }
S3State represents Terraform state stored in S3 bucket
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner can scan the directories looking for a Terraform projects
func NewScanner ¶
NewScanner returns initialized instance of Scanner
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
cli
package main is entrypoint to terradep cli application
|
package main is entrypoint to terradep cli application |
Package encoding provides functionality of visualizing objects of terradep
|
Package encoding provides functionality of visualizing objects of terradep |
Package inspect contains code copied from terraform-config-inspect which is not exposed or must've been modified
|
Package inspect contains code copied from terraform-config-inspect which is not exposed or must've been modified |