Teaching an AI Agent to Roast My AWS Architecture (So Production Doesn't) A cloud engineer built an AI architecture reviewer on Amazon Bedrock that ingests architecture screenshots or CloudFormation/Terraform templates via an S3 event notification and Lambda, then passes them to a multimodal foundation model such as Anthropic Claude or Amazon Nova through the Bedrock Converse API with structured output enabled. The agent returns jokes alongside a serious JSON checklist mapped to the AWS Well-Architected Framework pillars of Security, Reliability and Cost Optimization, aiming to surface problems before production rather than at a 3 AM pager alert. Teaching an AI Agent to Roast My AWS Architecture So Production Doesn't Teaching an AI Agent to Roast My AWS Architecture So Production Doesn't Why wait for a 3 AM pager alert to discover your cloud setup is held together by hope and duct tape? Learn how to build a brutally honest, rubber-duck-debugging AI architecture reviewer using Amazon Bedrock. Every cloud engineer has that one architecture diagram they’re quietly proud of—and terrified to show during a Well-Architect Review. Mine involved three AWS Lambda functions playing hot potato with an Amazon SQS queue, an Amazon DynamoDB table with a partition key that aged like milk, and IAM permissions generously set to "Resource": " " "just for testing." Instead of waiting for my AWS bill or my tech lead to humble me, I decided to build an AI agent on Amazon Bedrock whose sole purpose is to roast my architecture before it hits production. The Premise: Rubber Duck Debugging, But the Duck Talks Back Traditional rubber duck debugging relies on you explaining your code to an inanimate object until you spot your own mistake. The problem? Rubber ducks are far too polite. By pairing a multi modal foundation model like Anthropic Claude or Amazon Nova with a cheeky system prompt, you can turn an architecture diagram—or a Cloud Formation/Terraform template—into a ruthless code review session. How the "Cloud Gordon Ramsay" Architecture Works Input Ingestion: Drop an architecture screenshot or IaC template template.yaml into an Amazon S3 bucket. Trigger: An S3 Event Notification invokes an AWS Lambda function. The Roast Engine: Lambda passes the diagram image and template to Amazon Bedrock Converse API with structured output enabled. Actionable Fix: Alongside the jokes, the model outputs a serious JSON checklist mapped to the AWS Well-Architected Framework pillars Security, Reliability, Cost Optimization . The Secret Sauce: System Prompting for Humor + Utility If you just ask an LLM to "be funny," you’ll get cheesy dad jokes. To get sharp, genuinely useful feedback, constrain the persona and force structured remediation: