28mm / blast-radius

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

Feature: Resource Property Display--Optional, Computed, ForceNew #22

Open 28mm opened 6 years ago

28mm commented 6 years ago

Blast Radius displays resource definitions as json blobs, without syntax highlighting or annotations of any kind. (json rather than hcl because pyHCL made this easier.)

Because the primary concern of Blast Radius is understanding the scope of change-sets, it would be useful if resource properties were marked to indicate whether:

In order to build a library of resource auto-completions, the vim-terraform project collects the top 100(?) projects from GitHub that match the pattern terraform-provider-*, then applies some perl or what-have-you to obtain resource names and associated properties.

It would be interesting to borrow as much of this code as is easily adaptable, and do something similiar for Blast Radius. I expect the ForceNew property to be of particular interest.