Cloud Cartographer is a powerful tool for analyzing and visualizing AWS CloudFormation stacks. It provides capabilities to scan your AWS infrastructure, filter stacks by tags, and generate both tabular (markdown) and interactive visualizations of your cloud architecture.
- Stack Discovery: Scan AWS CloudFormation stacks across multiple regions
- Tag-based Filtering: Filter stacks based on specific tags
- Flexible Output: Generate markdown tables with customizable headers
- Interactive Visualization: Create interactive D3.js-based visualizations of stack relationships
- Import/Export Mapping: Visualize dependencies between stacks through their import/export relations
- Multi-region Support: Analyze stacks across multiple AWS regions
- Python 3.x
- AWS credentials configured
- Git
- Clone the repository:
git clone https://github.com/vvangestel/cloud-cartographer.git
cd cloud-cartographer
- Install the package:
pip3 install .
Note: PyPI installation will be available in future releases.
The basic command structure is:
ccarto [-h] [-p PROFILE] [-r REGIONS [REGIONS ...]] [-f FILTER [FILTER ...]] [--headers HEADERS] [-i INPUT]
[-o OUTPUT] [-v]
-
-p, --profile PROFILE
: Specify the AWS profile to use -
-r, --regions REGIONS [REGIONS ...]
: Specify one or more AWS regions to scan -
-f, --filter FILTER [FILTER ...]
: Filter stacks by tags (format: Key:Value) -
--headers HEADERS
: Custom headers for markdown table output -
-i, --input INPUT
: Skip AWS API calls and use existing JSON data for visualization -
-o, --output OUTPUT
: Specify output filename for JSON graph data (defaults tocloudformation_map.json
) -
-t, --title TITLE
: Specify title of generated markdown document (defaults toCloud Cartographer Table
) -
-v, --verbose
: Enable verbose output
- Scan all stacks in a specific region:
ccarto -r eu-west-1
- Filter stacks by tags:
ccarto -f Environment:Production Team:DevOps
- Use a specific AWS profile and output to a specific file:
ccarto -p myprofile -o specific_output.json
- Generate visualization from existing JSON: (TODO)
ccarto -i existing_data.json
The tool includes a D3.js-based visualization component that creates an interactive map of your CloudFormation stacks. To use the visualization:
- Generate the JSON output using the tool
- Open the included HTML file in a web browser
- Explore the interactive visualization of your stack relationships
This is a WIP project. Contributions are welcome! Please feel free to submit a Pull Request.
For bugs and feature requests, please create an issue in the GitHub repository.
- PyPI package publication
- Enhanced filtering capabilities
- Enhanced visualization options