
A conversation with your architecture
How I’m using generative AI to understand diagrams, gain insights, make decisions, generate diagrams, and even generate infrastructure code

- What are the recommended strategies for unit testing this architecture?
- How well does this architecture adhere to the AWS Well Architected Framework?
- What improvements should be made to the resiliency of this architecture?
- Convert the data flow from this architecture into a Mermaid formatted sequence diagram.
- What are the quotas or limits in this architecture?
- Can you generate the CloudFormation code to provision this architecture?
joy_count_tool.py
that can retrieve the current, up-to-date joy count from the system via an API (our implementation retrieves it from a JSON file for simplicity). During the conversation, the model detects that a tool is needed, replies back to our app with which specific tool to use, and then our app uses the tool to retrieve the joy count. This data is then passed back to the model and a natural language response incorporating the joy count is returned to our app. You can read more about how tool use works with Amazon Bedrock in my past blog post here.- Are all our AWS resources properly configured according to our company's compliance requirements?
- Does this architecture adhere to our company best practices?
- Does this class diagram adhere to our naming best practices?
- Where are the current bottlenecks in this system?
- Watch episode 1 of the Conversation with your Architecture series. Episodes 2 and 3 will be out in January 2025.
- Get the code, tweak it to your use case or analyze your own diagram here.
- Work through the workshop, Harnessing generative AI to create and understand architecture diagrams that I co-led at re:Invent 2024.
- Read how Olivier Lemaitre, AWS User Group leader, goes from diagram to code with Amazon Q Developer.