From code to diagrams: Agentic architecture documentation with Amazon Bedrock AgentCore
aws ·
The article describes an AWS solution for automated architecture documentation using Amazon Bedrock AgentCore. A global interdealer broker deployed this pipeline in production since Q1 2026 for their electronic trading platform. The system automatically analyzes .NET code bases, generates UML diagrams in Mermaid and SVG formats, and ingests metadata into Amazon Bedrock Knowledge Bases for semantic search. It integrates AWS CodeCommit, CodePipeline, CodeBuild, S3, and Bedrock Knowledge Bases to trigger documentation generation on every code push. The agent uses an iterative workflow with phases for understanding, generation, validation, conversion, and publishing, achieving 95% reliability compared to 65% for single-shot API calls. The solution addresses challenges of time-intensive manual documentation, rapid obsolescence, knowledge silos, and compliance gaps.
aws