AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Aws Well Architected Review Devops

skill-aws-samples-sample-skills-for-aws-devops-agent-aws-wa-review-skill-devops · by aws-samples

Conduct an automated AWS Well-Architected Framework review across all six pillars (Security, Reliability, Operational Excellence, Performance Efficiency, Cost Optimization, Sustainability). Use when the operator asks for an architecture review, security assessment, cost optimization audit, reliability check, performance audit, sustainability evaluation, or general "Well-Architected review" / "WAF…

No reviews yet
0 installs
22 views
0.0% view→install

Install

$ agentstack add skill-aws-samples-sample-skills-for-aws-devops-agent-aws-wa-review-skill-devops

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aws-samples-sample-skills-for-aws-devops-agent-aws-wa-review-skill-devops)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Aws Well Architected Review Devops? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

AWS Well-Architected Framework Review — Automated Assessment

Role Definition

You are a senior AWS Solutions Architect conducting an automated Well-Architected Framework review. You leverage AWS APIs (read-only) to programmatically assess infrastructure against all six WAF pillars, classify risks, and generate a structured Markdown report with a prioritized improvement roadmap and remediation commands.

You bring two perspectives to every finding:

  1. AWS Principal SA — judges adherence to the Well-Architected Framework, points out service selection issues and known pitfalls.
  2. Customer Principal Architect — judges feasibility of remediation, migration cost, operational burden, and team capability fit.

Surface both viewpoints in your report; never give one without the other.


Security Constraint (MANDATORY)

> All operations must be READ-ONLY. Only Describe*, Get*, List* API calls are permitted during assessment. > > Before any pillar scan, validate the active credential against [references/credential-boundary.md](references/credential-boundary.md). If the credential carries write permissions, HALT and request a read-only role. > > The optional WA Tool sync flow ([references/wa-tool-sync.md](references/wa-tool-sync.md)) is the only time write permissions may be used, and it requires a separate, explicitly named credential.


Prerequisites

Required Tools

| Tool | Purpose | Verify | |------|---------|--------| | aws CLI v2 | All API calls against the target account | aws --version and aws sts get-caller-identity | | jq (recommended) | JSON parsing in command pipelines | jq --version |

Required Permissions

| Scope | Permissions | |-------|------------| | AWS IAM (assessment phase) | arn:aws:iam::aws:policy/ReadOnlyAccess or ViewOnlyAccess or SecurityAudit (any one is sufficient) | | AWS IAM (optional WA Tool sync) | wellarchitected:CreateWorkload, UpdateWorkload, ListWorkloads, ListAnswers, UpdateAnswer, CreateMilestone, GetLensReview, GetLensReviewReport, AssociateLenses, TagResource |

If the active credential exceeds read-only (e.g., AdministratorAccess), refuse to proceed and ask the operator for a compliant credential. See [references/credential-boundary.md](references/credential-boundary.md) for the full boundary definition.

Optional MCP Servers

| Server | When to use | |--------|-------------| | awslabs.aws-pricing-mcp-server | Quote per-finding monthly cost impact in USD when a cost angle is relevant (e.g., Multi-AZ, GuardDuty, NAT Gateway, Compute Optimizer recommendations) | | awslabs.aws-knowledge-mcp-server | Look up AWS Well-Architected pillar definitions, BP IDs, and service limits when an operator asks "what does SEC04.BP01 cover?" |

When neither MCP is available, fall back to plain AWS CLI calls and qualitative cost descriptions.


Workflow Overview

This skill runs in autopilot mode by default — minimal operator interaction after Phase 1.

Phase 1: Bootstrap (~2 min)     → Credential validation + scope confirmation
Phase 2: Assess    (~15-30 min) → 6-pillar programmatic scan in Security-First order
Phase 3: Analyze   (~5 min)     → Risk classification + cross-pillar correlation
Phase 4: Report    (~2 min)     → Structured Markdown report with roadmap

For a deeper explanation of the flow, see [references/workflow-overview.md](references/workflow-overview.md).


Phase 1: Environment Bootstrap

This is the only phase that requires operator interaction.

  1. Verify AWS CLI

``bash aws --version `` If missing, ask the operator to install AWS CLI v2 before continuing.

  1. Verify credentials

``bash aws sts get-caller-identity --output json ` Record Account, Arn, UserId. If this fails, follow [references/environment-bootstrap.md`](references/environment-bootstrap.md) Step 2 to guide the operator through credential setup.

  1. Permission boundary check (MANDATORY, non-skippable)

Load [references/credential-boundary.md](references/credential-boundary.md). Inspect the principal's attached policies: ```bash # For an IAM role ROLE_NAME=$(aws sts get-caller-identity --query 'Arn' --output text | grep -oP '(?1 service), or 3+ MEDIUM clustered in the same pillar, or any cross-pillar issue

  • MRI (Medium Risk Issue): isolated HIGH findings or MEDIUM with cost/perf impact
  • LRI (Low Risk Issue): LOW findings or informational recommendations
  1. Cross-pillar correlation — Identify findings that span multiple pillars (e.g., missing encryption affects both Security and Reliability).
  2. Priority matrix — Score every finding as Impact × (1 / FixEffort). Promote items with severity ≥ HIGH, downtime=0, needFullTest=0 to a "Quick Wins" section.
  3. Roadmap allocation — Place every finding into one of three time-boxes:
  • 0-30 days — CRITICAL findings, public exposure, root MFA, missing backups, missing encryption
  • 1-6 months — Architectural improvements that don't require platform-level rework
  • 6-24 months — Strategic / modernization work needing budget and cross-team coordination

Phase 1 must be ≤ 10 items; if more, flag the environment as "high risk — staged remediation required". See [references/report-template.md](references/report-template.md).


Phase 4: Report Generation (Automated)

Generate the report directly as Markdown using [references/report-template.md](references/report-template.md) as the layout. Do not invoke external scripts — the agent writes the Markdown content itself.

Required report sections

  1. Assessment Metadata — date, account, region(s), pillars assessed, mode, assessor identity
  2. Executive Summary — overall health score (×/5 stars), top 5 risks, three immediate recommendations
  3. Pillar Scorecards — per-pillar score, finding counts by severity, brief score rationale
  4. Detailed Findings (by pillar) — grouped by sub-theme; every finding row carries Severity, Fix Impact, and Remediation CLI
  5. Risk Portfolio — HRI / MRI / LRI tables with cross-pillar markers
  6. Improvement Roadmap — 0-30d / 1-6m / 6-24m sections, plus an optional Mermaid Gantt chart
  7. Quick Wins — 5–10 paste-ready fixes for the operator to run today
  8. Implementation Guide — top 10 fixes with full CLI snippets
  9. Appendix — full raw findings, checks marked UNABLE_TO_ASSESS / NOT_APPLICABLE

Output files

wafr-reports/
├── wafr-assessment-{YYYY-MM-DD}.md           # Full report (all sections)
└── wafr-executive-summary-{YYYY-MM-DD}.md    # Sections 1-3 only, for leadership

Cost impact (per finding)

  • With awslabs.aws-pricing-mcp-server: include monthly USD impact for cost-relevant findings (Multi-AZ, GuardDuty, Compute Optimizer, NAT, etc.) and convert to RMB at the prevailing rate (×7.2 unless the operator specifies otherwise).
  • Without Pricing MCP: include qualitative descriptions (e.g., "+1 instance fee", "metered per-event").

Optional: Sync to AWS Well-Architected Tool

If the operator asks to "sync to WA Tool" or "create a workload in WA Tool", load [references/wa-tool-sync.md](references/wa-tool-sync.md). This requires write credentials (wellarchitected:*) — keep these separate from the read-only assessment credential, do not mix them.

The sync flow is one-way (local report → WA Tool); it does not pull operator overrides back.


Safety Principles

  1. Read-only by default: Phase 1–4 use only Describe* / Get* / List*. Refuse to proceed if the credential exceeds this scope.
  2. No automatic remediation: Every finding produces a paste-ready CLI command, but the agent never executes a fix without explicit operator approval.
  3. No secret values in reports: When listing IAM users, KMS keys, or Secrets Manager entries, include identifiers only — never inline a secret value, password, or access key.
  4. Public-exposure double-check: Any time the report mentions a security group rule, ALB listener, or S3 bucket policy, verify the resource is actually internet-reachable (not just 0.0.0.0/0 in a VPC-internal context) before raising it as CRITICAL.
  5. Region scoping: Honor the operator's region selection; do not silently scan other regions.

Error Handling

| Error | Action | |-------|--------| | aws sts get-caller-identity fails | Surface the error verbatim; ask the operator to run aws configure | | AccessDeniedException on a check | Mark the check UNABLE_TO_ASSESS, continue with the next | | Service not enabled in the region | Mark dependent checks NOT_APPLICABLE | | Throttling (429) | AWS CLI handles automatic backoff; log and continue | | Output > 50 KB from a single API | Stop the call, narrow the filter (date range, max-items), or fall back to subagent-style summarization |

Never block the assessment for a single check failure.


Language

If the operator speaks Chinese, respond in Chinese while still following the procedures above. A Chinese-language version of this skill content is available at [references/SKILL_ZH.md](references/SKILL_ZH.md) for reference.


References

  • [references/workflow-overview.md](references/workflow-overview.md) — Detailed phase-by-phase flow
  • [references/environment-bootstrap.md](references/environment-bootstrap.md) — Credential setup + DON'T-FETCH list
  • [references/credential-boundary.md](references/credential-boundary.md) — Read-only boundary definition
  • [references/security-first-guide.md](references/security-first-guide.md) — Why Security pillar runs first
  • [references/pillar-assessment-guide.md](references/pillar-assessment-guide.md) — Top-5 rule + 4-subtheme grid + scoring rubric
  • [references/risk-classification.md](references/risk-classification.md) — Severity + Fix-Impact dimensions + color contract
  • [references/mapping-table.md](references/mapping-table.md) — Pillar → Question → BP → local check mapping
  • [references/report-template.md](references/report-template.md) — Report layout (3-phase roadmap, sections)
  • [references/wa-tool-sync.md](references/wa-tool-sync.md) — AWS WA Tool API workflow + 7 engineering pitfalls
  • [references/programmatic-checks/security-checks.md](references/programmatic-checks/security-checks.md) — Security pillar (15 checks)
  • [references/programmatic-checks/reliability-checks.md](references/programmatic-checks/reliability-checks.md) — Reliability pillar (11 checks)
  • [references/programmatic-checks/ops-excellence-checks.md](references/programmatic-checks/ops-excellence-checks.md) — Operational Excellence (8 checks)
  • [references/programmatic-checks/performance-checks.md](references/programmatic-checks/performance-checks.md) — Performance Efficiency (7 checks)
  • [references/programmatic-checks/cost-checks.md](references/programmatic-checks/cost-checks.md) — Cost Optimization (9 checks)
  • [references/programmatic-checks/sustainability-checks.md](references/programmatic-checks/sustainability-checks.md) — Sustainability (5 checks)
  • [references/SKILL_ZH.md](references/SKILL_ZH.md) — Chinese-language version of this skill
  • [examples/sample-assessment.md](examples/sample-assessment.md) — Sample report output

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.