A simple CLI script to generate AWS infrastructure diagrams from AWS CloudFormation templates
Project description
AWS CloudFormation Diagrams
A simple CLI script to generate AWS infrastructure diagrams from AWS CloudFormation templates.
Features
- Parses both YAML and JSON AWS CloudFormation templates
- Supports 140 AWS resource types and any custom resource types
- Supports
Rain::Moduleresource type - Supports
DependsOn,Ref, andFn::GetAttrelationships - Generates DOT, GIF, JPEG, PDF, PNG, SVG, and TIFF diagrams
- Provides 126 generated diagram examples
Have ideas? Open an issue or start a discussion.
Prerequisites
Following software must be installed:
Installation
Following command installs required Python dependencies, i.e., PyYAML and Diagrams.
# using pip (pip3)
pip install PyYAML diagrams
Usage
usage: aws-cfn-diagrams [-h] [-o OUTPUT] [-f FORMAT] [--embed-all-icons] filename
Generate AWS infrastructure diagrams from AWS CloudFormation templates
positional arguments:
filename the AWS CloudFormation template to process
options:
-h, --help show this help message and exit
-o, --output OUTPUT output diagram filename
-f, --format FORMAT output format, allowed formats are dot, dot_json, gif, jp2, jpe, jpeg, jpg, pdf, png, svg, tif, tiff, set to png by default
--embed-all-icons embed all icons into svg or dot_json output diagrams
Examples
The folder diagrams contains generated diagrams for most of AWS CloudFormation templates.
Following diagram is about WebApp:
Following diagram is about Gitea with Rain::Module:
Following diagram is about Gitea without Rain::Module:
Following diagram is about AutoScaling:
Following diagram is about EKS:
Following diagram is about VPC:
License
This project is licensed under the Apache 2.0 License.
Contributing
Star History
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_cloudformation_diagrams-0.2.0.tar.gz.
File metadata
- Download URL: aws_cloudformation_diagrams-0.2.0.tar.gz
- Upload date:
- Size: 41.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6983d836f72396a6872020cb1307586071e852a9517d2c03064bc5e864178e77
|
|
| MD5 |
bb354f9bb830fd4ba867076a83f39138
|
|
| BLAKE2b-256 |
79288561f928285e52bd4526017262b3ec6d80d7dbfa9bf2d9f92c2cb30380c2
|
File details
Details for the file aws_cloudformation_diagrams-0.2.0-py3-none-any.whl.
File metadata
- Download URL: aws_cloudformation_diagrams-0.2.0-py3-none-any.whl
- Upload date:
- Size: 40.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a799f61d027d5ac4a2f5aae3286f20cc59fb4b3827c92c9775d2328b24840dc1
|
|
| MD5 |
36d9c3599df6014ab4bc1de73409fe75
|
|
| BLAKE2b-256 |
f7b4825048039410c6e5d5292c2e60714b75d0114daa0263cae162e5342f7b34
|