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.
npm i -g @mhlabs/cfn-diagram
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
cfn-dia generate -t template.yaml
- 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
- Some icons are missing. Working on completing the coverage.
- Default layouts get quite messy. In the draw.io menu, use the Arrange -> Layout menu for better options
- Connections between resources are limited to
Ref
andFn::GetAtt
intrinsic functions.Fn::Sub
is coming soon.