AWS Builder Center

From Requirements to AWS Architecture with Amazon Bedrock

A short overview of an AI-native assistant that turns BRD/PRD requirements into AWS architecture diagrams, Terraform code, and cost estimates using Amazon Bedrock and a human-in-the-loop workflow.

AI, Cloud & MLOps | AWS Builder
Cloud architecture usually starts with requirements written in a BRD or PRD. Turning those requirements into an architecture diagram, Infrastructure as Code, and a cost estimate can take a lot of manual work.
I worked on an AI-native assistant that helps automate this workflow using Amazon Bedrock, Mastra, TypeScript, Terraform, draw.io, and ELK.js.
The flow is simple:
BRD / PRD
↓
Requirement Analysis
↓
Architecture Graph
↓
Human Review
↓
Diagram + Terraform + Cost Estimate
One key design choice was using an architecture graph as the intermediate representation. The same graph can be reused to generate an editable draw.io diagram and Terraform code.
We also added human approval gates before generating the final outputs. This helps keep the AI as an assistant rather than letting it make architecture decisions without review.
The biggest lesson from this project was that building an AI application is not only about prompting a model. The workflow around the model, including structured outputs, validation, deterministic processing, and human review, is just as important.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article