Generate Diagram from terraform output.
tdot [ flags ] [ input file path ]
# terraform graph | tfdot -ograph.png
If no input files are supplied, the program reads from stdin.
$ pip install tfdiagrams
-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
docker run --rm -it \
--workdir=/app \
-v "$PWD:/app" \
semnil/tfdiagrams sh -c "terraform init && terraform graph | tfdot -ograph.png"