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"