28mm / blast-radius

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

When using with an AWS project, diagram is blank. #101

Open ghost opened 2 years ago

ghost commented 2 years ago

This tool has worked well with my other projects, but if I use it with my AWS project, the screen is blank like seen below. I can interact with my aws account with terraform and cli just fine and I know I can reach the state file. Any idea what I am doing wrong?

image

chongma commented 2 years ago

Same here. In the console i get

Screenshot 2022-07-11 at 13 09 44
chongma commented 2 years ago

Actually I get this error in terminal AttributeError: 'NoneType' object has no attribute 'groupdict'

Ianyliu commented 1 year ago

@chongma Would you like to give my repo a try? https://github.com/Ianyliu/blast-radius-fork

Try it by python3 -m pip install git+https://github.com/Ianyliu/blast-radius-fork

Ianyliu commented 1 year ago

@chongma @ghost is the problem resolved?

thecodekitchen commented 1 year ago

I have also just experienced this problem. I'm running an S3 backend for my remote state. Any clarification would be appreciated.

Ianyliu commented 1 year ago

@thecodekitchen Could you try my fork? https://github.com/Ianyliu/blast-radius-fork

python3 -m pip install git+https://github.com/Ianyliu/blast-radius-fork

thecodekitchen commented 1 year ago

Sure! I'll let you know how it goes.

On Thu, Mar 23, 2023, 4:15 PM Ian Liu @.***> wrote:

@thecodekitchen https://github.com/thecodekitchen Could you try my fork? https://github.com/Ianyliu/blast-radius-fork

python3 -m pip install git+https://github.com/Ianyliu/blast-radius-fork

— Reply to this email directly, view it on GitHub https://github.com/28mm/blast-radius/issues/101#issuecomment-1481835099, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5G7TBEFGHHE2HMK6TKTZ2DW5SVNVANCNFSM527CLINA . You are receiving this because you were mentioned.Message ID: @.***>

thecodekitchen commented 1 year ago

So I got it to work properly, but there was an odd procedure I had to follow. When I installed with the command you gave me and used the normal command:

blast-radius --serve .

Instead of running the server, it opened a text file with the python code. I just copied the code into a Python file inside a virtual environment, installed your package there, and ran the file. From there, everything worked fine.

On Thu, Mar 23, 2023 at 4:15 PM Ian Liu @.***> wrote:

@thecodekitchen https://github.com/thecodekitchen Could you try my fork? https://github.com/Ianyliu/blast-radius-fork

python3 -m pip install git+https://github.com/Ianyliu/blast-radius-fork

— Reply to this email directly, view it on GitHub https://github.com/28mm/blast-radius/issues/101#issuecomment-1481835099, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5G7TBEFGHHE2HMK6TKTZ2DW5SVNVANCNFSM527CLINA . You are receiving this because you were mentioned.Message ID: @.***>

Ianyliu commented 1 year ago

I'm glad to hear it worked well for you!