Skip to content

CLI tool to visualise CloudFormation/SAM/CDK stacks as visjs networks or draw.io diagrams.

Notifications You must be signed in to change notification settings

NetRock6/cfn-diagram

Repository files navigation

cfn-diagram

CLI tool to visualise CloudFormation templates as draw.io diagrams. Use it in combination with the Draw.io Integration for VS Code to instantly visualise your stacks.

Demo

Installation

npm i -g @mhlabs/cfn-diagram

Usage

cfn-dia

Usage: cfn-dia [options] [command]

Options:
  -v, --vers            output the current version
  -h, --help            display help for command

Commands:
  generate|g [options]  Generates a draw.io diagram from a CloudFormation template
  help [command]        display help for command

Example

cfn-dia generate -t template.yaml

Features

  • Select only the resource types you want to see. This lets you skip granlar things like roles and policies that might not add to the overview you want to see
  • Navigate through a new differnet layouts
  • Works for both JSON and YAML templates
  • Filter on resource type and/or resource names

Known issues

  • Some icons are missing. Working on completing the coverage.

About

CLI tool to visualise CloudFormation/SAM/CDK stacks as visjs networks or draw.io diagrams.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.2%
  • HTML 9.8%