Automatically generates infrastructure diagrams from AWS CDK stacks using Graphviz.
CDK-Dia is a Node.js tool that automatically generates visual diagrams of AWS infrastructure defined with the AWS Cloud Development Kit (CDK). It solves the problem of maintaining accurate and up-to-date architecture diagrams by creating them directly from CDK code, ensuring documentation matches the deployed resources.
AWS CDK developers and DevOps engineers who need to visualize, document, and communicate their cloud infrastructure architecture.
Developers choose CDK-Dia because it automates diagram creation, saving time and reducing errors compared to manual tools, and it integrates seamlessly with CDK workflows to keep diagrams synchronized with code changes.
Automated diagrams of CDK provisioned infrastructure
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Generates diagrams directly from synthesized CDK stacks, ensuring diagrams always match the deployed infrastructure without manual updates, as highlighted in the philosophy.
Allows decorators to collapse or ignore specific constructs, enabling fine-grained control over diagram detail, as shown in the customization examples with CdkDiaDecorator.
CLI options like --include and --exclude let you diagram specific stacks or nested stacks, making it easy to focus on relevant parts of complex architectures.
Supports PNG for static images and experimental interactive HTML via Cytoscape, offering flexibility for different documentation or exploration needs.
Requires Graphviz to be installed and available in PATH, adding setup overhead and potential compatibility issues in containerized or restricted environments.
Advanced customization features like decorators are only supported for TypeScript/JavaScript CDK projects, not for other languages like Python or Java, as admitted in the README.
Interactive HTML rendering via Cytoscape is marked as experimental, indicating it may be unstable or lack full functionality compared to the mature PNG output.