Skip to main content

AWS Arch Agent

Local-first AWS architecture review for CDK (TypeScript and Python), CloudFormation, and Terraform. It reports security, reliability, operational excellence, performance, cost, and sustainability issues mapped to the AWS Well-Architected Framework. A workload that uses Bedrock, SageMaker, or AgentCore also gets the four AI lenses.

A scan needs no AWS credentials. Price lookups are the only network calls, unless you pass --live-account or point the optional LLM at a server you run. --pricing-source off skips prices. --no-llm skips the model. If the model does not answer, the findings stay as the rules wrote them.

368 static rules and 317 template checks are implemented and tested. 141 of the 368 CDK rules (38%) have a template check. Those checks run on CloudFormation, Terraform, and synthesised CDK. docs/COVERAGE.md gives the reason for each of the others.

Install

Python 3.11+, git, and ripgrep (brew install ripgrep, sudo apt install ripgrep, or winget install BurntSushi.ripgrep.MSVC).

Latest release: v1.1.0. The package is on PyPI.

python3 -m venv .venv
source .venv/bin/activate
pip install "aws-arch-agent==1.1.0"
aws-arch-agent --version   # 1.1.0

Windows (PowerShell):

py -m venv .venv
.venv\Scripts\Activate.ps1
pip install "aws-arch-agent==1.1.0"
aws-arch-agent --version   # 1.1.0

Without a virtual environment:

pipx install aws-arch-agent

From GitHub:

pip install "git+https://github.com/gutehall/aws-arch-agent@v1.1.0"
Extra Adds
aws boto3, for prices from the Price List Query API
account --live-account
v2 LangGraph mode and cdk synth
rag embedding search over --rag

pip install "aws-arch-agent[v2]==1.1.0". V2 synth also needs Node.js (npx). To work on the scanner, see CONTRIBUTING.md.

Usage

aws-arch-agent --repo ./my-project                                   # report.html, cost, LLM
aws-arch-agent --repo . --out report.md                              # Markdown, from the suffix
aws-arch-agent --repo . --no-llm --format sarif --out results.sarif  # GitHub Code Scanning
aws-arch-agent --repo . --no-llm --fail-on high                      # fail on High findings

A plain --repo scan writes report.html, prices every stack it can, and uses a local Ollama when one is running. A CDK app uses V2 when the v2 extra and Node.js are installed, so the synthesised stacks are priced too. Otherwise it says why and scans with V1.

While it runs, the terminal prints each step: detecting the source, reading files, the current rule, synth, templates, and any LLM call. A step that is still going after 15 seconds is printed again. When it finishes, it prints severity counts, up to five top fixes, and the report path. Read the findings in the report. Terminal summary.

The source is detected. --iac cdk|cloudformation|terraform forces one. --tf-plan plan.json fills Terraform values from terraform show -json. Every flag is in docs/REFERENCE.md.

What it checks

Pillar Rules Examples
Security 115 Missing encryption, public access, wildcard IAM, hardcoded secrets, no MFA
Reliability 73 Missing DLQs, no backups, single-AZ, no health checks
Operational Excellence 73 No logging, alarms, or tracing; no owner, runbook, or rollback
Performance Efficiency 24 No caching, no Graviton, oversized tasks, no load test
Cost Optimization 51 No autoscaling, NAT data processing, no lifecycle policy, no budgets
Sustainability 27 No Spot, no right-sizing, idle resources, no data expiry
Best Practices 5 Tags, secrets in environment variables, CDK Aspects

REPO-* checks also read notes in the repo (README, ADRs, runbooks, docs/). AI checks run only for an AI workload, or when lenses.ai is set. Account-level rules stay off until rules.org: true.

The report answers each of the 57 Well-Architected questions from the findings. An AI workload also gets the four lens question lists. Full lists: docs/CF_RULES.md, Well-Architected answers, AI lens answers.

Cost

CloudFormation, Terraform, and cdk synth output get an estimated monthly cost per stack, from the AWS Price List, cached locally for 24 hours. A missing price skips that estimate. CDK source in V1 is not priced; use --mode v2.

aws-arch-agent --repo . --no-llm --update-baseline
aws-arch-agent --repo . --no-llm --compare-cost .aws-arch-agent-baseline.json --max-cost-increase 10%
aws-arch-agent --repo . --no-llm --max-monthly-cost 500
aws-arch-agent --repo . --no-llm --pricing-source off

Usage-based resources (S3, Lambda, NAT data, and similar) are priced only from .aws-arch-agent-usage.yaml or --usage-file. Prices, budgets, and the usage file: docs/REFERENCE.md.

CI

Record current findings once, then fail only on new ones. The baseline file is .aws-arch-agent-baseline.json.

aws-arch-agent --repo . --no-llm --update-baseline
aws-arch-agent --repo . --no-llm --fail-on high --enforce-baseline

To accept one finding in source, put # aws-arch-agent: ignore <RULE_ID> reason="..." expires=YYYY-MM-DD on its line or the line above. Inline suppressions.

- uses: gutehall/aws-arch-agent/.github/actions/aws-arch-agent@v1.1.0
  with:
    repo: .
    fail-on: high
    format: sarif
    no-llm: "true"
    enforce-baseline: "true"
    job-summary: "true"

Pin a release tag. A minor release can add checks, so new findings may appear. A major release can change CLI flags or the report schema. GitHub Action, releases, CHANGELOG.md.

Modes

--mode auto (the default) uses V2 for a CDK app when the v2 extra and Node.js are installed, or when --templates is passed. Otherwise it uses V1.

  • V1 (--mode v1): static rules. No synth.
  • V2 (--mode v2): cdk synth, then six reviewers over the findings and the synthesised template. --rag ./docs/waf-snippets.md adds keyword search over that file. Embedding search needs the rag extra. V2 pipeline.

Documentation

License

MIT. See LICENSE.

Metadata

Release files for aws-arch-agent 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-arch-agent 1.1.0
File Size Uploaded Provenance Actions
aws_arch_agent-1.1.0.tar.gz 1.2 MB With provenance Details for aws_arch_agent-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aws-arch-agent 1.1.0
File Interpreter ABI Platform Actions
aws_arch_agent-1.1.0-py3-none-any.whl Python 3 none any Details for aws_arch_agent-1.1.0-py3-none-any.whl

Total release size: 1.9 MB

Release files / aws_arch_agent-1.1.0.tar.gz

Download URL aws_arch_agent-1.1.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
7a7df62a1df89dc132205b8cac0910f35fee4e03984e33d17db88d717c1a522b
BLAKE2b-256 checksum
How to use checksums
822b2febc6663728d5f7a6a4e96ee13d371d5b94f25cdeadb404556875f91192
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / aws_arch_agent-1.1.0-py3-none-any.whl

Download URL aws_arch_agent-1.1.0-py3-none-any.whl
Size 652.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e29be663dde422e6730d6ac5d8ea5ae3875f81aa98896c214d35b8f07be69e94
BLAKE2b-256 checksum
How to use checksums
91233e540d48859dce676ffe49732683bc4c3f1427c243dd64f322d0c3a2924a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for aws-arch-agent 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aws_arch_agent-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page