Closed PePoDev closed 3 years ago
Same issue here, did you get it to work?
+1
+1
same with Terraform 0.13.4 OS windows WSL ubuntu 18.04 Install via pip3 Python 3.6.9 BlastRadius version (0.1.23)
I was able to "fix" this by changing the regex to be r"(\[root\]\s+)*(?P<module>[^.]+)\.(?P<type>\S+)(\.\S+)?"
. I still haven't got it to generate a graph but I think that's my impatience at the moment.
Anyone got this one working?
Same here... Installed with pip3 Terraform v0.14.5 Python 3.6.7 WSL with Ubuntu 18.04 BlastRadius 0.1.23
@28mm
+1
I got it to render a graph by changing the regex as well, in blastradius/handlers/dot.py
to be
m = re.match(r'(\[root\]\s+)*(?P<module>\S+)\.(?P<type>\S+)[. ]\S+', label)
Not the [. ]
after the capture for the <type>
group. The offending label that was crashing for me was
[root] module.kv (close)
This character class handles a .
or a \s
after a module type
I'll submit a PR maybe by the weekend
Thanks @leriksen, also I ended up finding this one - https://github.com/kmussel/blast-radius/. It has some updates and fixes that made it work. There are more commits that may be beneficial to bring back in.
Closed. I found alternative to visual infrastructure from Terraform.
https://github.com/cycloidio/inframap https://github.com/pcasteran/terraform-graph-beautifier
Terraform 0.13.2 OS Ubuntu 20.04 Install via pip