Skip to content

Generate Diagram from terraform output.

License

Notifications You must be signed in to change notification settings

supership-jp/tfdiagrams

 
 

Repository files navigation

tfdiagrams

Generate Diagram from terraform output.

Usage (CLI):

tdot [ flags ] [ input file path ]
# terraform graph | tfdot -ograph.png

If no input files are supplied, the program reads from stdin.

Install packages

$ pip install tfdiagrams

Flags

-Tformat
Set output language to one of the supported formats. By default, png image is produced.

-ooutfile
Write output to file outfile.

-ekeyword,comma,separated
Exclude keywords separated by commas

Usage (docker):

docker run --rm -it \
  --workdir=/app \
  -v "$PWD:/app" \
  semnil/tfdiagrams sh -c "terraform init && terraform graph | tfdot -ograph.png"

About

Generate Diagram from terraform output.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 90.5%
  • HCL 8.2%
  • Dockerfile 1.3%