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 328 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. Every other rule is answered by a repo rule, a usage signal, or a --live-account read; docs/COVERAGE.md gives the reason for each.
Install
Python 3.11+, git, and ripgrep (brew install ripgrep, sudo apt install ripgrep, or winget install BurntSushi.ripgrep.MSVC).
Latest release: v1.3.1. The package is on PyPI.
python3 -m venv .venv
source .venv/bin/activate
pip install "aws-arch-agent==1.3.1"
aws-arch-agent --version # 1.3.1
Windows (PowerShell):
py -m venv .venv
.venv\Scripts\Activate.ps1
pip install "aws-arch-agent==1.3.1"
aws-arch-agent --version # 1.3.1
Without a virtual environment:
pipx install aws-arch-agent
From GitHub:
pip install "git+https://github.com/gutehall/aws-arch-agent@v1.3.1"
| Extra | Adds |
|---|---|
aws |
boto3, for prices from the Price List Query API |
account |
--live-account: read-only reads of account services (Security Hub, GuardDuty, CloudTrail, Config, Budgets), the account FSBP controls S3.1, EC2.7 and IAM.7, Macie, Storage Lens and a cost export, and of Reserved Instances, reserved nodes and Savings Plans for the compute the scan found |
v2 |
LangGraph mode and cdk synth |
rag |
embedding search over --rag |
pip install "aws-arch-agent[v2]==1.3.1". 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, SUST-004 and SUST-005 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 from .aws-arch-agent-usage.yaml or --usage-file. Without one, the report shows an illustrated cost at an assumed low traffic; an illustration is not a budget, and budget checks ignore it. The same file can state usage signals (read/write ratio, CPU, Parameter Store rate, a daily traffic pattern, user and upload Regions); REL-011, OPS-023, SUST-002, SUST-003, PERF-011 and PERF-014 report only when it does. 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.3.1
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.mdadds keyword search over that file. Embedding search needs theragextra. V2 pipeline.
Documentation
- docs/REFERENCE.md: CLI, sources, Terraform plans, LLM, prices, cost
- docs/CONFIG.md:
aws-arch-agent.yaml - docs/CF_RULES.md: every rule
- docs/V2_LANGGRAPH.md: V2 pipeline
- docs/report-schema.json: JSON report
- CONTRIBUTING.md: development and releases
- CHANGELOG.md: what each release changed
License
MIT. See LICENSE.
Metadata
Release files for aws-arch-agent 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aws_arch_agent-1.3.1.tar.gz | 1.3 MB | With provenance | Details for aws_arch_agent-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aws_arch_agent-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for aws_arch_agent-1.3.1-py3-none-any.whl |
Total release size: 2.0 MB
Release files / aws_arch_agent-1.3.1.tar.gz
| Download URL | aws_arch_agent-1.3.1.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec657ad4d3d7c7719b5d7b3a8b1c0fa16e5a433d782d3ef00b7ae36337d22dad
|
|
BLAKE2b-256 checksum How to use checksums |
a79cd82f2e83112e46088f18ddaf27d78cfb15acaa5e3585b97e4dc52284b7bb
|
| 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 24, 2026.
Transparency logRelease files / aws_arch_agent-1.3.1-py3-none-any.whl
| Download URL | aws_arch_agent-1.3.1-py3-none-any.whl |
|---|---|
| Size | 681.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20b1bc85234fce6c5bc6dcf799cede815b09410bb722aa7d6fc5185c686104a1
|
|
BLAKE2b-256 checksum How to use checksums |
8fb50c47a45c736ec96e061a96121448529ef9a8cf84831ccdd6163383288a4c
|
| 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 24, 2026.
Transparency logSecurity for aws-arch-agent 1.3.1
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.
Attestation for aws_arch_agent-1.3.1.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 24, 2026.
Transparency logA 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.