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 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.0. The package is on PyPI.

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

Windows (PowerShell):

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

Without a virtual environment:

pipx install aws-arch-agent

From GitHub:

pip install "git+https://github.com/gutehall/aws-arch-agent@v1.3.0"
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.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, 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.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.3.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.3.0
File Size Uploaded Provenance Actions
aws_arch_agent-1.3.0.tar.gz 1.3 MB With provenance Details for aws_arch_agent-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.0 MB

Release files / aws_arch_agent-1.3.0.tar.gz

Download URL aws_arch_agent-1.3.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2cd4f2d8954d9eb7af996ce23a4f380dd20f24d571112908c3b6f1bf827ef79c
BLAKE2b-256 checksum
How to use checksums
266ecb0be01bb22fff50e43b5c4ed0d922e40388bb9bff824ad73f52a75ef4c4
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 23, 2026.

Transparency log

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

Download URL aws_arch_agent-1.3.0-py3-none-any.whl
Size 680.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
015b0dc6d4eb1d198d7c3f2ac73a33498712be44860b50b4fb52cc8ab6d5ef8a
BLAKE2b-256 checksum
How to use checksums
0013b6f1e879c0d82f31235bb787df5285b06b001f6d23c34c50bdccc12a0b95
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 23, 2026.

Transparency log

Security for aws-arch-agent 1.3.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.3.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 23, 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