News for hackers. Stuff that matters.
Re:Draw.io and Terraform = Brainboard, Graphical Way to Do T... by yegle on Friday December 25, 2020 @04:14PM (#25539073)
I recently gave a tech talk internally about Terraform. I wanted to show how quickly a web service can get complicated by showing the SVG generated from `terraform graph` output.

It failed miserably:

$ tf graph|dot -Tpng > graph.png

dot: graph is too large for cairo-renderer bitmaps. Scaling by 0.420618 to fit

Trying to upload the genrated image to Google Slides and the error message: The image is too large. Images must be smaller than 25 megapixels.

$ tf state list|cut -d. -f3|grep ^google_|sort|uniq|wc -l

42 <-- different types of Google Cloud resources we use in our Terraform configs.

I'm very skeptical this config can be managed using a WYSIWYG tool.

Re:Draw.io and Terraform = Brainboard, Graphical Way to Do T... by BillinghamJ on Friday December 25, 2020 @05:32PM (#25539568)
Wonder if it'd be more achievable if the product natively understood TF modules? So you tend not to describe or view direct AWS resources, but slightly higher level concepts your eng team uses - then you only see the actual resources if you "zoom in" to a lower level scope
Re:Draw.io and Terraform = Brainboard, Graphical Way to Do T... by chafik-bel on Friday December 25, 2020 @05:39PM (#25539603)
Terraform modules will probably be available during Q1/2021. We started by releasing the market place which is the first step towards TF modules.
Re:Draw.io and Terraform = Brainboard, Graphical Way to Do T... by chafik-bel on Friday December 25, 2020 @04:18PM (#25539101)
The best way to verify that is to test it on Brainboard, I'm excited to know the results. We can do it together if you want, lemme know if you are interested.
Re:Draw.io and Terraform = Brainboard, Graphical Way to Do T... by gchamonlive on Friday December 25, 2020 @05:47PM (#25539661)
there are issues with `terraform graph` that taint the output a little with unnecessary information: https://github.com/hashicorp/terraform/issues/14511

People at hashicorp are aware of it but it doesn't seem to be a priority getting the output to look nicer right now

Re:Draw.io and Terraform = Brainboard, Graphical Way to Do T... by jcims on Friday December 25, 2020 @06:55PM (#25540124)
Gephi is good for drawing large graphs. Takes a minute to get used to the UI.