AWS Builder Center
Can Your Agent Review Your Cloud Architecture?

Can Your Agent Review Your Cloud Architecture?

A Well-Architected review used to be a multi-day effort when I was a solutions architect. The Agent Toolkit for AWS ships a skill that reads your code, pulls the live framework from AWS docs, and produces an evidence-backed report. Here's what it does, where it helps, and where it still needs you.

When I was a Solutions Architect (SA) at AWS, I used to run Well-Architected sessions with my customers.
I joined AWS in 2014 as a support engineer and moved into the SA role in 2015, the same year the  AWS Well-Architected Framework  launched with 4 pillars, and I stayed an SA for five years.
Learning to think in those pillars is a big part of what made me a better architect.
Fun fact: back then there were five pillars. The sixth, Sustainability, didn't arrive until re:Invent 2021.
It meant setting up a meeting with the leads, the developers, and us. We'd whiteboard their architecture, dive deep into how the application actually worked, and understand why they'd made the choices they made. Back then the Well-Architected Tool was something only we had internally as SAs. We'd generate the report with our recommendations and send it to the customer.
A lot of the time there was no documentation. No architecture diagram. Sometimes the person who set it up had left, and nobody knew why things were the way they were. So we dug in and questioned everything.
It had a purpose. Everyone in that room was there for the same thing: find the gaps, surface the risks, spot where money was leaking for no reason. And the teams always came out the other side understanding their own application better, with real steps to fix what was fragile and a clearer view of where they were headed. Some customers valued their Well-Architected Reviews (WARs) so much they went on to speak at events about how a WAR helped them strengthen their systems.
The grind was the toughest part of this process, because it meant we had to pull the evidence together, chase undocumented decisions, and ofcourse writing it all up. It was so much effort that reviews happened late, or once, or never.
AWS later  released the tool to the public  at re:Invent 2018, a checklist of questions across the pillars that teams could run themselves.
But here's what I noticed: having the tool sitting in the console didn't mean anyone actually went through it. Teams rarely prioritised sitting down to do it on their own. What moved them was having an external person, like me, set up a meeting and go through it with them. That gave them a reason to stop and actually assess.
There's a name for that, I learned later: body doubling. Just having another person present makes a task easier to start.
So when I saw the  Agent Toolkit for AWS  ships an actual Well-Architected review skill, I started wondering how this could be useful.
And then it clicked, maybe the external entity doesn't have to be a person anymore. Maybe the agent can be the one that walks you through it.
I wanted to know if it was the real thing. So let's go do a WAR together!


So what is the Well Architected Skill of Agent Toolkit

If we ask any model "review my architecture against the Well-Architected Framework", it will happily produce something. It'll sound right. It'll also be answering from training data that's months or years stale, with no idea what's actually in our code.
The Agent Toolkit skill is different. It's a   aws-well-architected-review   skill: a structured, gated workflow that your coding agent loads and follows. It works inside the agents you already use, Kiro, Claude Code, Cursor, and Codex. You can read the whole thing on GitHub, it's just markdown.
Two things make it more than a confident prompt.
It reads your actual code. The skill discovers your workload from your infrastructure-as-code and application code first. Findings come back with file names and line numbers, not generic advice.
It pulls the framework live. The skill fetches the framework content from the live AWS documentation at review time, through the toolkit's documentation reader, instead of relying on a snapshot baked into the model. So the questions and best practices it checks against are the current ones, not whatever the model remembers.

That combination is the whole point of the toolkit, really. Current AWS knowledge, plus your real code, instead of guesses.
There are four ways to run it, and picking the right one is the difference between a two-minute answer and a thorough report:
Mode
What you get
When to use it
Full
Every best practice, every pillar, full report
The real review, before a launch or audit
Quick
Question-level pass across all pillars
A fast health check
Pillar-scoped
Deep review of just the pillars you name
"Just look at Security"
Score
A scorecard plus top findings, no narrative
"Just give me a number"
Worth a mention: AWS also has a  Well-Architected Agent in preview  right now. It's a managed service in the Well-Architected console: you set up an agent profile and read-only IAM roles, and it scans your deployed resources on a schedule across four pillars (cost, security, resilience, performance), plus on-demand reviews of IaC you upload. It does need an AWS Support plan at Business+ or higher, so it's aimed at teams already in that tier.
The toolkit skill I'm using here runs inside your coding agent (Kiro, Claude Code, Cursor, Codex, Devin) and reviews your code and infrastructure-as-code directly, citing the exact file and line. It requires no account setup, no IAM, no support tier, and can reach every pillar and lens in the live docs.

Note: On November 16, 2026, AWS  updated the Well-Architected Framework , after I recorded this review. The core goals are the same, but this release reorganizes best practices into Cloud Foundations (account and org-level) and Cloud Workloads (what you build), and updates some best practices along the way. Read the announcement for the details.

Setup Agent Toolkit in your Coding Agent

If you haven't set the toolkit up yet, I walked through that in  I Switched to the Agent Toolkit for AWS .
Or just paste below in your choice of agent and let it install it!
Set up Agent Toolkit for AWS by following instructions: https://raw.githubusercontent.com/aws/agent-toolkit-for-aws/refs/heads/main/setup-instructions/setup.md
Your agent will:
  • Install the AWS CLI.
  • Use aws login to sign you in to the AWS CLI.
  • Configure the AWS MCP server and core AWS skills.
  • Set up customizable rules to guide how your agent builds on AWS.

The demo

Let's point it to a public aws sample:   aws-samples/aws-serverless-books-api-sample  . It's a small books API, Lambda and API Gateway and DynamoDB, with Cognito for auth, defined in SAM, plus a separate CDK pipeline that deploys it. A clean, reasonably built sample. Good, because I didn't want a staged disaster. I wanted to see what the skill says about code that's actually fine.
One thing I want to be clear about: we are NOT trying to make this sample look bad. It's a teaching sample, built to show how the API works, and it does that well. The point is to show what the skill can spot. A sample is a fair target precisely because it's public, it's reasonable, and anyone can clone it and reproduce exactly what I did. The findings below would apply to plenty of real production code too.
Ok, so I cloned it, opened it in Kiro, and pointed the skill at it with prompt:
"Use the  aws-well-architected-review  skill from the Agent Toolkit to review this repo, Security pillar."
Tip: invoke the skill by name. Call the skill explicitly so you're running the real workflow, not a review from memory.
It retrieved the skill, read through its procedure, and fetched the current Security pillar straight from the AWS documentation before it scored anything.
The agent working through the skill's gated procedure step by step: loading the Agent Toolkit tools, finding and retrieving the aws-well-architected-review SKILL.md, reading its reference files (corpus inventory, evaluation, risk, report template), setting up a scratch directory, discovering the workload from the SAM template, the three Lambda handlers, the CDK pipeline stack and the buildspecs, then moving on to acquire the live framework corpus

If you want you can see what tools its calling to verify it is indeed retrieving the skills!
A close-up of the aws___retrieve_skill call loading the aws-well-architected-review skill from the Agent Toolkit, with the returned SKILL.md describing its gated review workflow and the agent reading reference files such as security-considerations.md

You can see it in the report's own coverage audit, which records where the framework came from:
  • Framework source: live AWS documentation, fetched at review time
  • Corpus:  toc-contents.json  from  docs.aws.amazon.com/wellarchitected , retrieved that day
  • Best practices evaluated: 63 of 63 in the Security pillar
The top of the report: the CONFIDENTIAL banner, the Coverage Audit (63 of 63 best practices evaluated, the live corpus provenance URL and retrieval date, and a status distribution of 13 Implemented, 16 Partially Implemented, 4 Not Implemented, 3 Not Applicable, 27 Cannot Determine), and the Executive Summary showing overall Security maturity 3 out of 5 with a findings count of 0 Critical, 4 High, 5 Medium, 7 Low and the workload calibrated to Standard


The headline:

  • Overall Security maturity: 3 out of 5. Solid serverless fundamentals, undercut by a few real gaps.
  • Findings: 0 Critical, 4 High, 5 Medium, 7 Low.
  • It even calibrated to context, tagging the workload "Standard (public AWS sample)" instead of judging a demo like a regulated production system.
Here's the snapshot across the eleven Security questions:
Question
Status
Risk
SEC01 Securely operate
Partially Implemented
Medium
SEC02 Identity (authentication)
Partially Implemented
High
SEC03 Permissions
Partially Implemented
High
SEC04 Detection
Partially Implemented
Low
SEC05 Network protection
Not Implemented
High
SEC06 Compute protection
Partially Implemented
Medium
SEC07 Data classification
Partially Implemented
Low
SEC08 Data at rest
Implemented
Low
SEC09 Data in transit
Partially Implemented
Medium
SEC10 Incident response
Cannot Determine
—
SEC11 Lifecycle security
Partially Implemented
High
Important points :
  1. It gave credit where the code was good. The scorecard's headline strength was real: least-privilege Lambda runtime roles, encryption at rest, and an automated pipeline with a manual approval gate, gradual traffic shifting, and a pre-traffic smoke test before production. It marked those best practices Implemented and said so. A tool that only ever finds faults is easy to tune out. One that first tells you what you already did right is one I'll trust on the rest.
  1. It caught something I might have not found. The top High finding was in the CDK pipeline: the deploy role is handed  IAMFullAccess  plus six more  FullAccess  policies ( pipeline/lib/pipeline-stack.ts:79-86 ). The skill flagged it as a privilege-escalation path, a build anyone can influence could mint any IAM principal in the account, and it mapped the finding to two best practices, SEC03-BP02 and SEC11-BP07. The other three Highs were the weak Cognito policy (6-character passwords, no MFA, the deprecated implicit OAuth grant), no WAF or throttling in front of a public endpoint that runs an unbounded DynamoDB scan, and no security or dependency scanning in the pipeline.

Every best practice with receipts

All 63 best practices, each had a status, a risk level, the evidence, and a recommendation.
The report's Full BP Ledger table: one row per best practice with its BP ID, pillar, status, risk level, evidence, and recommendation. Rows like SEC01-BP01 flag staging and production deploying into the same account (Partially Implemented, Medium), SEC02-BP01 the weak Cognito password policy and implicit OAuth grant (Partially Implemented, High), with account-level practices such as root-user config and threat modelling marked Cannot Determine because they are not observed within the declared code scope

The status is honest too:
  • 13 Implemented
  • 16 Partially Implemented
  • 4 Not Implemented
  • 3 Not Applicable
  • 27 Cannot Determine
Twenty-seven best practices it would not score, because they live at the account or organization level, root-user config, org guardrails, incident-response runbooks, and none of that is visible in a single workload's code. Rather than guessing, it marked them "Not observed within declared scope" and said plainly that absence of evidence in one repo is not proof the control is missing.

Cross-Pillar Trade-offs

It also refused to treat every fix as free. A short cross-pillar trade-offs section weighed the cost and latency of putting a WAF in front of the API, the key-management overhead of customer-managed keys, and the user friction of enforcing MFA, and it flagged where the app's existing safe-deployment setup already serves reliability and security at once. Security work has costs, and it named them instead of pretending otherwise.
The report's Cross-Pillar Trade-offs section: the cost and latency of adding a WAF (security versus cost and performance), the overhead of customer-managed KMS keys (security versus cost and operations), the user friction of enforcing MFA (security versus usability), and a positive synergy where the existing gradual deployment, pre-traffic smoke test, and error-alarm rollback serve both reliability and security


A detailed plan and next steps

Then it sorted everything onto an Eisenhower matrix, Do First, Plan, Delegate, Defer, and wrote a "start this week" list. Each fix carried a suggested owner, an effort estimate, and a SMART goal.
The prioritized remediation plan laid out on an Eisenhower matrix of Do First, Plan, Delegate, and Defer, with the quick wins separated from the foundational projects

It flagged which fixes were safe local edits to the  template.yml  and which change deployed resources, the IAM scoping, the WAF, an account split, and should be a deliberate decision first.
When it finished, it offered to make the quick wins, deep-dive another pillar, or produce a version I could import into the Well-Architected Tool in the console to track over time.
The report's Next Steps list of five start-this-week actions (harden Cognito, add npm audit, set enforceSSL, scope the pipeline IAM, add a WAF with throttling), the agent's closing offers to implement fixes or deep-dive further, and the run's footer showing it used about 15 credits over 7 minutes 22 seconds

The slow part of a review was never understanding the framework. It was gathering the evidence, writing it up, and knowing what to touch first. That's exactly the part this does.
Note: the report stays in chat unless you ask to save it. The skill hands you the whole review inline and doesn't write it to a file on its own. That's deliberate. A review can carry sensitive detail about your infrastructure, and dropping it into your repo automatically risks committing it straight to git. When you want it kept, just ask your agent, and it can write the report wherever you point it.

Does it replace a Solutions Architect?

I'm not going to tell you this replaces a real review. It doesn't, and the skill is honest about its own limits, which I respect.
Code evidence has blind spots. It told me itself: a static pass can't confirm account-level controls like GuardDuty, Security Hub, or a global CloudTrail, because those live in a deployed account, not in the code. Anything only knowable at runtime gets marked "Cannot Determine" with a note on what it would need to check.
It doesn't know your business. A real Well-Architected review captures context the code can't tell you. Is this an internal tool or a regulated production workload? Single-region is fine for one and reckless for the other. The skill calibrates to the criticality you give it. This run defaulted to "Standard" because it's a public sample, but that judgment conversation is still yours to have.
It won't invent a best-practice ID. If the live framework fetch fails for some reason, the skill says so rather than making up citations. I would rather have a tool that admits a gap than hand me some confident nonsense.
So think of it as the thing that does the evidence-gathering grind in minutes and gets you to a prioritized list fast. Like the full Security run took about seven minutes, so grab a coffee while its working.
The decisions on top of that list are still a human job.

Key takeaway

The Well-Architected Framework is AWS's checklist for building cloud workloads well, across security, cost, reliability, performance, operations, and sustainability. It's good guidance that always took real effort to apply.
This skill turns it into a gated workflow you run inside your agent: it pulls the live framework instead of stale training data, evaluates every best practice against your actual code with a five-value status, points at the file and line when it finds a gap, and admits "Cannot Determine" instead of guessing. It ends with a prioritized remediation order and offers to make the low-risk fixes for you on the spot.
The review I used to dread is now something I'd actually run on a Friday afternoon and get a head start!

Links

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