inkdrop-org / inkdrop-visualizer

Visualizes your Terraform
https://inkdrop.ai/
Mozilla Public License 2.0
442 stars 16 forks source link

Tool not finishing correctly #38

Open phazeight opened 2 months ago

phazeight commented 2 months ago

Hey, really excited to try this tool but I can't seem to get it to work.

Trying to run it using a plan file this is the command I'm doing

inkdrop tfplan --detailed --debug

and the logs make it look like it sees real resources in my plan, and its trying to do things (opens the broweser chrome window on locahost:300 and such) , but it inevitably just hangs and never shows a complete render.

Any ideas based off these logs?

Here is the first section

Diagram renderer running on localhost:3000
Computing terraform graph...
LOG: Detailed view is on.
LOG: Unchanged resources are hidden.
LOG: Full opacity for unchanged resources is off.
LOG: Terraform plan detected.
LOG: Adding main resource: module.app_config.module.secret.aws_secretsmanager_secret.this
LOG: Adding main resources...
LOG: Adding main resource: module.acm.module.acm.aws_acm_certificate.this

and here is the end

LOG: Removing inactive secondary resource: module.server_alb_logs_s3.module.s3.aws_s3_bucket_lifecycle_configuration.this
LOG: Removing inactive secondary resource: module.server_alb_logs_s3.module.s3.aws_s3_bucket_replication_configuration.this
LOG: Removing inactive secondary resource: module.server_alb_logs_s3.module.s3.aws_s3_bucket_website_configuration.this
LOG: Removing inactive resources... Done.
LOG: Removing inactive secondary resource: module.server_alb_logs_s3.module.s3.aws_s3_bucket_versioning.this
LOG: Removing unchanged main resource: module.acm.module.acm.aws_acm_certificate.this
LOG: Removing unchanged main resource: module.r53.module.zones.aws_route53_zone.this
LOG: Removing unchanged resources... Done.
LOG: Computing connections...
LOG: Removing unchanged resources...
LOG: Computing connections... Done.

there are a bunch of logs in the middle regarding resources that don't seem relevant to post here (removing inactive resources, aggregating and such) but let me know if you want to see those too.

albschi commented 2 months ago

Hey, thanks for reporting!

When it opens localhost:3000 on your browser, do you see a completely white page, or a whiteboard with no resources? Do you see any errors in the browser console?

kjm0001 commented 1 month ago

I am having same issues, and I can see the sidebar navigation, but the whiteboard is empty

phazeight commented 1 month ago

sorry got lost in the shuffle, will get back to this shortly with much more details

JanRK commented 1 month ago

I have the same issue. It doesn't show anything on a plan with over 100 changes. inkdrop plan.out --debug --show-unchanged --telemetry-off --detailed image

Nothing special in console image

albschi commented 1 month ago

@phazeight The issue in your case was probably related to a bug that couldn't render nested modules with the same name (module.acm.module.acm from what I can read in your logs). This should be fixed in 1.1.46

@kjm0001 and @JanRK, your problem is likely something different, though. Would you mind sharing a file containing the whole --debug output?

phazeight commented 1 month ago

okay gonna give it a shot

EDIT: YO its working much better now! Thanks!