Created
July 7, 2022 15:22
-
-
Save lkurzyniec/2ccf7bdd69697440cb1e7a712dddda6f to your computer and use it in GitHub Desktop.
Batch file to generate tf dependency graph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set loc=%cd% | |
terraform graph -type=plan > graph.txt | |
move /Y graph.txt "C:\Program Files\Graphviz\bin" | |
cd "C:\Program Files\Graphviz\bin" | |
dot -Tsvg graph.txt > graph.svg | |
move /Y graph.svg %loc% | |
cd %loc% | |
explorer graph.svg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment