Ianyliu / blast-radius-fork

Interactive visualizations of Terraform dependency graphs using d3.js
https://28mm.github.io/blast-radius-docs/
MIT License
44 stars 11 forks source link

Pasting output of `terraform graph` into web interface results in `Invalid graph detected!` #45

Open calebworks opened 9 months ago

calebworks commented 9 months ago

I can't seem to get blast-radius working with the output of terraform graph.

Steps to reproduce:

  1. Run terraform graph > graph.out
  2. Run the blast-radius-fork Docker container with docker run --rm -it -p 8000:5000 --tmpfs /data:ro --security-opt apparmor:unconfined --cap-add=SYS_ADMIN ianyliu/blast-radius-fork --serve
  3. Copy the contents of graph.out
  4. In the blast-radius web interface, click on the keyboard icon and paste the file contents.
  5. Observe the error Invalid graph detected! Would you like to reload the page?

Has anyone been able to get this working properly?

Ianyliu commented 5 days ago

@calebworks Sorry for the late reply, could you send over the graph you pasted? (No worries if it's inconvenient, just wanted to see if there's anything I can fix)