Sub topic 13
Using the AWS Well-Architected Tool
This chapter assumes you know the six pillars, how questions and best practices are structured, and how risk levels work. It also assumes you can run basic AWS CLI commands with credentials already configured. Here you will use the AWS Well-Architected Tool to record a review, read its results, and save progress.
What the tool is
The AWS Well-Architected Tool is a free AWS service for reviewing workloads against the framework. It stores the review questions, your answers, the resulting risk counts, and an improvement plan. It is available in the console and through the AWS CLI and SDKs under the wellarchitected service name.
The tool does not inspect your resources. It records what your team says about the workload. A review is only as accurate as the answers entered, and the tool will not catch an answer that is too optimistic. Some features connect to other AWS services to prefill or support answers. Treat these as hints and check them against what you actually run.
The tool organizes data into four objects:
| Object | What it holds |
|---|---|
| Workload | A named collection of resources and processes you review as one unit, with an environment, Regions, and an owner |
| Lens review | The set of questions from one lens, applied to a workload, with your answers |
| Milestone | A read-only snapshot of a workload's answers and risk counts at a point in time |
| Improvement plan | The list of questions you answered with risks, ordered by risk level |
A workload can have several lenses applied. Each lens review keeps its own answers and risk counts.
Defining a workload
Choose the workload boundary before you create anything. A good workload is something one team can describe end to end, such as an orders API with its database, queue, and deployment pipeline. If the boundary is too broad, many questions get the answer "it depends." If it is too narrow, you miss shared dependencies.
You define the workload with a name, description, environment, lenses, and Regions. The environment is either PRODUCTION or PREPRODUCTION. This choice affects how you read the results. A production workload with high risks needs attention first.
aws wellarchitected create-workload \
--workload-name "orders-api" \
--description "Customer order processing API" \
--environment PRODUCTION \
--lenses wellarchitected \
--aws-regions us-east-1 \
--review-owner "[email protected]"The command returns a WorkloadId. Every later command needs that ID, so save it. The wellarchitected lens alias is the AWS Well-Architected Framework lens, which covers all six pillars.
aws wellarchitected list-workloads \
--query "WorkloadSummaries[].[WorkloadName,WorkloadId,RiskCounts]"Workload names must be unique in your account and Region. If you plan to review many workloads, agree on a naming convention first, such as team-service-environment.
The review flow
The cycle repeats for each pillar and lens:
You do not have to answer every question in one session. The tool keeps your partial answers, so a team can spread a review over several workshops. Pillars can also be assigned to the people who know them best. A security engineer can take the Security pillar while the on-call lead answers Operational Excellence.
Answering questions
For each question, the tool shows a set of best practices as choices. You select the ones your workload follows. The tool then derives the risk level from which choices you selected. Roughly, selecting none of the practices the question marks as required gives a high risk, selecting some gives a medium risk, and selecting all gives no risk.
To see where a pillar stands, list its answers:
aws wellarchitected list-answers \
--workload-id <workload-id> \
--lens-alias wellarchitected \
--pillar-id securityEach answer in the output includes a QuestionId, a Risk value such as UNANSWERED, HIGH, MEDIUM, or NONE, and the choices available. Pillar IDs are operationalExcellence, security, reliability, performance, costOptimization, and sustainability. The Performance Efficiency pillar uses the short ID performance, which trips up many scripts.
To record an answer from the CLI, use update-answer with the choice IDs from the previous output:
aws wellarchitected update-answer \
--workload-id <workload-id> \
--lens-alias wellarchitected \
--question-id <question-id> \
--selected-choices <choice-id-1> <choice-id-2> \
--notes "TLS enforced by bucket policy; see runbook SEC-14"The --notes field is worth using every time. Six months later, the note explains why the team chose that answer, and a reviewer can check it. A note should name evidence, such as a policy, a dashboard, or a runbook, instead of restating the question.
A question may not apply to your workload. You can mark it as not applicable and give a reason, such as the question being out of scope or a risk you accept. Use this sparingly. A review that marks many questions as not applicable has usually drawn its workload boundary badly.
Reading risk counts
After you answer, the workload shows the number of high risk issues (HRIs) and medium risk issues (MRIs), both in total and per pillar. Fetch them with:
aws wellarchitected get-lens-review \
--workload-id <workload-id> \
--lens-alias wellarchitected \
--query "LensReview.[PillarReviewSummaries[].[PillarName,RiskCounts],RiskCounts]"Read the counts with these points in mind:
- A count of zero for a pillar can mean the pillar is healthy, or that its questions are still unanswered. Check the
UNANSWEREDcount before you trust a clean result. - Counts across pillars are not equal in weight. One high risk in Security can matter more than five medium risks in Cost Optimization.
- Counts from different lenses are separate. Do not add them together.
- A falling count shows progress only if the answers stayed honest between reviews.
The improvement plan
The tool turns every question that carries a risk into an improvement item. Items are sorted so that high risks come first. Each item links to the best practices you did not select and to guidance on how to adopt them.
aws wellarchitected list-lens-review-improvements \
--workload-id <workload-id> \
--lens-alias wellarchitected \
--pillar-id securityUse this list as input to your normal planning process, not as a replacement for it. A practical approach is:
- Take all high risks in production workloads first.
- Group items that need the same change, such as one IAM policy fix that closes several questions.
- Create tickets in your own tracker, with a link to the question.
- Estimate effort, and consider trade-offs between pillars. A reliability fix such as a second Region can raise cost.
- Schedule the work in sprints with a named owner.
Milestones
A milestone freezes the current answers and risk counts. You cannot edit it afterwards. Save one before you start remediation, and another after each round of fixes. Comparing them shows measurable change.
aws wellarchitected create-milestone \
--workload-id <workload-id> \
--milestone-name "After first remediation sprint"List and inspect saved milestones with:
aws wellarchitected list-milestones \
--workload-id <workload-id>Milestone names must be unique within a workload. Use a name that says what changed, such as Baseline 2026-11 or Post incident review, instead of v2. Milestones are also useful as audit evidence, since they show what the team believed at a given date.
Access control and sharing
The tool uses IAM like any other service. Actions are grouped under the wellarchitected: prefix, and you can allow read-only access with wellarchitected:Get* and wellarchitected:List*. Reviewers can then read results without changing answers.
You can share a workload with another AWS account or, using AWS Organizations, with an organization. You choose between read-only and contributor permissions. Sharing is useful when a central architecture team reviews workloads owned by other accounts. Workloads are Regional resources, so a workload created in one Region does not appear in another.
Common mistakes
- Reviewing once and stopping. The framework expects repeated reviews. Schedule the next one when you save a milestone.
- Letting one person answer everything. One author usually lacks knowledge of every pillar, so answers drift toward guesses.
- Chasing the count. Closing medium risks for a lower number, while ignoring a high risk that is harder to fix, defeats the purpose.
- Skipping notes. Without notes, nobody can tell why an answer was chosen.
- Wrong lens. The general lens misses concerns that a specialized lens covers. The next chapter covers choosing one.
Exercise
You finish a Security review of the orders-api workload and the tool shows zero high risks and zero medium risks for the Security pillar. Which two checks should you make before you report that Security is healthy, and which command would show you the data for the first check?
Show answer
First, check how many Security questions are still unanswered, because unanswered questions do not count as risks. Run aws wellarchitected list-answers --workload-id <workload-id> --lens-alias wellarchitected --pillar-id security and look for answers with the risk value UNANSWERED. Second, check that the answers are supported by evidence, for example by reading the notes on each answer and confirming that the practices selected are in place today, not planned.
Exercise
Your team fixed several issues over a month. Describe the sequence of tool actions that lets you show the improvement afterwards, naming the CLI commands involved.
Show answer
Before remediation starts, run aws wellarchitected create-milestone with a name such as "Baseline" to freeze the answers and risk counts. After the fixes, update each affected answer with aws wellarchitected update-answer, and set notes that point to evidence. Then run create-milestone again with a name such as "After first remediation sprint". Compare the two with list-milestones and the console's milestone view, or get-lens-review for the current counts, to show how high and medium risk counts changed.