Closed AnthonyWC closed 6 years ago
@AnthonyWC thanks for reporting!
Does terraform graph
work like you’d expect?
Also, does terraform graph | blast-radius —svg
spit out an svg or errors?
Thanks
Cool that works.
I did terraform graph | blast-radius --svg > graph.svg
For me it's the same, though terraform graph | blast-radius --svg > graph.svg
does not work either:
$ terraform graph | blast-radius --svg
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/blastradius/handlers/dot.py", line 455, in _module
return m.groupdict()['module']
AttributeError: 'NoneType' object has no attribute 'groupdict'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/blast-radius", line 96, in <module>
main()
File "/usr/local/bin/blast-radius", line 54, in main
dot = DotGraph('', file_contents=sys.stdin.read())
File "/usr/local/lib/python3.9/site-packages/blastradius/handlers/dot.py", line 56, in __init__
self.nodes.append(DotNode(e.target))
File "/usr/local/lib/python3.9/site-packages/blastradius/handlers/dot.py", line 415, in __init__
self.module = DotNode._module(self.label) # for module groupings. 'root' or 'module.foo.module.bar'
File "/usr/local/lib/python3.9/site-packages/blastradius/handlers/dot.py", line 457, in _module
raise Exception("None: ", label)
Exception: ('None: ', '[root] module.security_groups (close)')
I have the exact same issue as @Timboo89 terraform graph | blast-radius --svg > graph.svg
`$ terraform graph | blast-radius --svg > graph.svg
Traceback (most recent call last): File "/opt/homebrew/lib/python3.9/site-packages/blastradius/handlers/dot.py", line 455, in _module return m.groupdict()['module'] AttributeError: 'NoneType' object has no attribute 'groupdict'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/bin/blast-radius", line 96, in
No graph/icon is displayed on either Chrome or Firefox; run in directory that has 'terraform init --reconfigure'; I generated a graph.svg in the same directory
Also tried using
blast-radius --serve .
andblast-radius --serve /full_path/foo/bar