Closed AnthonyWC closed 6 years ago
@AnthonyWC 3 options:
--serve
mode, use the red "prune to subgraph" button
--center
argument, to do the same thing from the command line. e.g.
[...]$ terraform graph \
| blast-radius --center \
"[root] module.us-west-2.module.secondary_subnet.data.aws_vpc.target" \
--svg
--focus
argument to show only the specified resource and its dependencies.
[...]$ terraform graph \
| blast-radius --focus \
"[root] module.us-west-2.module.secondary_subnet.data.aws_vpc.target" \
--svg
Really great feature, should be added to the README.md. It was not immediately apparent to me that it only works with --svg
(and it also works with --json
).
I'd like to be able to do focus and not just center in the GUI.
This is a question; with terraform it is possible to display specific resource/module by using the target feature with plan, e.g:
Is that also possible to display only that specific graph with blast-radius?
Currently if I use apply the same specific graph with:
It would still display the entire graph (unlike in graph.png) (perhaps due to the parsing of the HCL which isn't targeted)