CloudCompass AI
AI-assisted AWS architecture canvas with component selection, monthly cost estimation and Terraform export.
Overview
CloudCompass AI is an interactive cloud architecture design studio that translates natural-language system descriptions into editable AWS node-and-edge topologies, pairs visual editing with component palettes and monthly cost estimation, and exports Terraform configurations.
Problem Statement
Early-stage infrastructure planning often splits across static whiteboard diagrams, manual AWS pricing spreadsheets and hand-written Terraform boilerplate. Changes made on a diagram rarely stay synchronized with cost estimates or deployable configuration.
Technical Architecture
Next.js and TypeScript frontend driving an accessible React Flow node graph, backed by AWS Bedrock (Claude) structured topology synthesis, deterministic AWS service node schemas, client/server cost estimation rules and Terraform HCL code generation.
Interactive Topology Canvas
React Flow graph supporting keyboard node/edge navigation, drag-and-drop AWS service palette (EC2, Lambda, S3, DynamoDB, RDS, API Gateway) and PNG diagram export.
AI Architecture Synthesis
AWS Bedrock runtime prompting with strict JSON topology validation so generated services and edges map cleanly onto typed canvas nodes.
Cost & IaC Generators
Live monthly cost estimator aggregating baseline service configurations alongside an automated Terraform HCL generator.
Technology Stack
Key Engineering Decisions & Challenges
Engineering Decisions
- Constrained LLM output to a strict node-and-connection schema rather than free-form code so users can inspect and edit every AWS resource visually before exporting Terraform.
- Preserved full keyboard accessibility on the React Flow canvas (Enter/Space node selection, arrow-key positioning and Delete/Escape controls).
- Kept manual component insertion first-class alongside AI generation so engineers are never locked into prompt-only editing.
Implementation Challenges
- Preventing invalid or dangling edges when translating open-ended natural-language architecture prompts into directed service graphs.
- Maintaining responsive canvas layout and legible node inspection panels across desktop and tablet viewports.
Testing Strategy & Demonstrated Outcomes
Testing & Verification
- Schema validation on generated node/edge payloads prior to canvas state mutation.
- End-to-end verification of prompt-to-graph generation, manual node editing, image export and Terraform HCL syntax structure.
Demonstrated Outcomes
- Won 1st Place in the Tempo (YC S23) × Contra Design-Engineering Challenge with AWS (2025).
- Publicly deployed live interactive application at cloudcompassai.vercel.app.
Lessons Learned
- Pairing generative synthesis with a deterministic visual state machine gives engineers far higher trust than generating opaque infrastructure code directly.