Giter Club home page Giter Club logo

Comments (1)

28mm avatar 28mm commented on August 26, 2024

Hi @m4h3 -- you raise some interesting issues :) My somewhat disorganized thoughts follow below.

Right now, blast-radius parses terraform graph to learn about the graph, so in a certain sense it only knows about the future--i.e. what the current state would be if terraform apply were run.

To learn about the deployment's current state, it would need to be able to parse .tfstate files, and assemble a graph from that.

I think dynamic mutations will be very hard, unless the initial and final states are known. This difficulty arises because blast-radius relies on graphviz for layout. Small changes to a graph can lead graphviz to wildly alter its layout, so it would be dizzying to watch terraform apply execute, for instance.

However, if initial and end states are known (by comparing.tfstate with terraform graph) it becomes possible to do a layout that includes everything, and simply reveal elements as they're instantiated in the cloud. I'm optimistic about this approach.

Some possible 1st steps

  • A [referesh] button that activates when the configuration changes on disk.
  • The option to view the graph as derived from .tfstate, rather than terraform graph
  • A terraform plan view

Anyway, those are some thoughts so far--I'll probably return with revisions. Let me know if I can clarify any particular point.

from blast-radius.

Related Issues (20)

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.