Giter Site home page Giter Site logo

Comments (7)

albschi avatar albschi commented on August 20, 2024 2

Terraform formats the output of terraform graph differently since v1.7.0, and this caused the graph parser to not work properly.

The bug should be fixed in the latest Inkdrop release.

from inkdrop-visualizer.

albschi avatar albschi commented on August 20, 2024

Hi, thanks for reporting the issue.

I've increased the maxBuffer size to 10MB, which should solve the problem. Please update the package and try running the command again.

Let me know if it's fixed now!

from inkdrop-visualizer.

Conor-clicktech avatar Conor-clicktech commented on August 20, 2024

Hi,

Thanks for that, seems to have solved the buffer issue, but now getting the following error:

No AWS Terraform resources found in graph. Please ensure that you have run Inkdrop inside your Terraform project directory, or specify the path to your Terraform project using the --path argument

Even though I definitely am running inkdrop inside of my Terraform directory, this is the same directory where I run terraform init and terraform plan

Thanks

from inkdrop-visualizer.

albschi avatar albschi commented on August 20, 2024

We can only render resources from the official TF AWS provider for now. Also, we don't support Terragrunt or other Terraform wrappers yet.

If that is not your case, are you able to run terraform graph in your directory?

It might also help to know the logs you get when you run inkdrop --debug

from inkdrop-visualizer.

Conor-clicktech avatar Conor-clicktech commented on August 20, 2024

I am using the official AWS provider for TF.

terraform graph runs successfully and produces the expected output

inkdrop --debug produces

Diagram renderer running on localhost:3000
Processing raw graph...
LOG Detailed view is off.
LOG No Terraform plan detected. Using static data.
LOG Adding main resources...
LOG Adding main resources... Done.
LOG Aggregating secondary resources...
LOG Aggregating secondary resources... Done.
LOG Computing connections...
LOG Computing connections... Done.
No AWS Terraform resources found in graph.
Please ensure that you have run Inkdrop inside your Terraform project directory, or specify the path to your Terraform project using the --path argument.

Note LOG No Terraform plan detected. Using static data. even though there is a plan present, I've tried files called plan and plan.out

Also specifying the path with the --path argument does nothing, I've tried from inside the TF directory and outside

Cheers

from inkdrop-visualizer.

albschi avatar albschi commented on August 20, 2024

Hi,

This could happen when the generated graph contains no resources, or for some reason inkdrop can't read it correctly.

If it does not contain anything sensitive, would you mind sharing your terraform graph output?

Thank you

from inkdrop-visualizer.

Conor-clicktech avatar Conor-clicktech commented on August 20, 2024

Yep that's done it, all sorted 👍

from inkdrop-visualizer.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.