Skip to content

Instantly share code, notes, and snippets.

@lwoodson
Last active November 14, 2016 19:15
Show Gist options
  • Save lwoodson/b8b1fc08aef4bb805a12d8095720b76b to your computer and use it in GitHub Desktop.
Save lwoodson/b8b1fc08aef4bb805a12d8095720b76b to your computer and use it in GitHub Desktop.

Working on a tool to visualize cloudformation templates. Running cfnviz against this template yields this visualization:

demo

The tool has a python 2.7 and GraphViz dependency.

Diagrams are great to help people new to a project quickly grok the structure and relationships of a system, but are hardly ever maintained. Show me a graph in a project, and I'll show you something out of sync that represents the state of that project about a year ago. The nice thing about this tool is that when you run it against a template, it renders the image and opens it very fast. I can run it whenever I need to see the current state of a cloudformation template without anyone on the team having to remember to update/maintain a diagram.

You can attach it to a build pipeline provided you can install python 2.7 and GraphViz. You could have the visualization of cloudformation templates generated every time a PR is merged or some such if you want to have the image checked in and referenced in documentation.

I still need to run a bunch more templates through it and clean it up, but I figured I would give a sneak peak. Feel free to comment here or on twitter to lwoodson.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment