{"slug": "teaching-an-ai-agent-to-roast-my-aws-architecture-so-production-doesn-t", "title": "Teaching an AI Agent to Roast My AWS Architecture (So Production Doesn't)", "summary": "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.", "body_md": "Teaching an AI Agent to Roast My AWS Architecture (So Production Doesn't)\n\nTeaching an AI Agent to Roast My AWS Architecture (So Production Doesn't)\n\nWhy 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.\n\nEvery 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.\"\n\nInstead 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.\n\nThe Premise: Rubber Duck Debugging, But the Duck Talks Back\n\nTraditional 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.\n\nBy 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.\n\nHow the \"Cloud Gordon Ramsay\" Architecture Works\n\nInput Ingestion: Drop an architecture screenshot or IaC template (template.yaml) into an Amazon S3 bucket.\n\nTrigger: An S3 Event Notification invokes an AWS Lambda function.\n\nThe Roast Engine: Lambda passes the diagram image and template to Amazon Bedrock (Converse API) with structured output enabled.\n\nActionable Fix: Alongside the jokes, the model outputs a serious JSON checklist mapped to the AWS Well-Architected Framework pillars (Security, Reliability, Cost Optimization).\n\nThe Secret Sauce: System Prompting for Humor + Utility\n\nIf 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:", "url": "https://wpnews.pro/news/teaching-an-ai-agent-to-roast-my-aws-architecture-so-production-doesn-t", "canonical_source": "https://builder.aws.com/content/3N2oZyWVlg7R7OPjqxbdxTOk82V/teaching-an-ai-agent-to-roast-my-aws-architecture-so-production-doesnt", "published_at": "2026-12-05 07:13:41+00:00", "updated_at": "2026-12-05 07:44:23.294563+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "ai-tools", "large-language-models"], "entities": ["Amazon Bedrock", "AWS Lambda", "Amazon S3", "Amazon SQS", "Amazon DynamoDB", "Anthropic Claude", "Amazon Nova", "AWS Well-Architected Framework"], "also_reported_by": [], "takeaway": "Pairing a multimodal model on Bedrock's Converse API with a constrained persona prompt and structured output yields both humor and a JSON remediation checklist mapped to the Well-Architected pillars, triggered automatically by an S3 event notification on uploaded diagrams or IaC templates.", "recommendation": {"advice": "Constrain the persona and force structured JSON output mapped to the Well-Architected pillars; an unconstrained 'be funny' prompt only yields dad jokes instead of usable remediation.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/teaching-an-ai-agent-to-roast-my-aws-architecture-so-production-doesn-t", "markdown": "https://wpnews.pro/news/teaching-an-ai-agent-to-roast-my-aws-architecture-so-production-doesn-t.md", "text": "https://wpnews.pro/news/teaching-an-ai-agent-to-roast-my-aws-architecture-so-production-doesn-t.txt", "jsonld": "https://wpnews.pro/news/teaching-an-ai-agent-to-roast-my-aws-architecture-so-production-doesn-t.jsonld"}}