Repository navigation
Releases
Releases · gutehall/aws-arch-agent
v1.3.3
Changes
- Exit codes: a run with analysis warnings now exits 1 when
--fail-onfinds something at its threshold or a budget is breached. Exit 2 is now only for warnings when no gate fails. Before, warnings always won with 2. CI that branches on exit 2 for such runs now gets 1 (#132) - GitHub Action:
no-synthdefaults to"true".cdk synthruns the scanned repo's own CDK app, so with synth on, scanning a fork's pull request runs untrusted code. Setno-synth: "false"only for a repo whose code you trust. The CLI default is unchanged. REFERENCE has a new "CDK synth runs repo code" section (#131)
Fixes
- CF-S3-001 and CF-RDS-004 now read string booleans: a
PubliclyAccessible: "true"RDS instance was missed, and a block written with"true"values was reported as missing (#131) - The file walk and template discovery skip symlinked directories, and any symlink that points outside the scanned tree (#131)
- Templates, Terraform files and plans, baselines, and the Python
rgfallback are read with a size cap. Only regular files are read, so a FIFO or/dev/zerocannot hang or exhaust the scan. An oversize file becomes a warning or error, not a parse (#131) - V2
--templateschecks only real CloudFormation templates, as V1 does, so workflow YAML next to them gets no CF findings (#131) - V2 reports an unreadable repo root as a warning instead of crashing (#131)
- The Terraform price region keeps looking past a provider block whose region it cannot read (#131)
- An unknown severity threshold raises an error instead of turning the filter off (#131)
- The LLM verdict cache is keyed by repo and capped at 256 batches (#131)
- CI actions are pinned to commit SHAs (#131)
v1.3.2
Changes
- The HTML report has three tabs: Summary (opens first), Findings and Well-Architected answers. Summary draws the findings as charts: a severity ring, Well-Architected questions met per pillar, findings per pillar and per theme as bars split by severity, and the top fixes and quick wins as cards. Every view stays reachable without script (#129)
v1.3.1
Fixes
- Price List bulk API: the offer CSV is served as
application/octet-stream, so every bulk fetch failed withcan't concat str to bytesand no price was estimated. It is now read as UTF-8 (#127) - Ollama: prompts are sized to the model's trained context, read from
/api/show, instead ofOLLAMA_NUM_CTXalone. Ollama runsllama3:8bat 8192 tokens whatevernum_ctxasks and cut longer prompts from the middle, so verdict replies were not JSON. Verdicts now go in smaller batches on a short context; hypotheses are skipped with a reason when the rule catalog alone does not fit. Long-context models are unchanged (#127)
v1.3.0
Changes
- Stack cost without a usage file: usage-billed resources (Lambda, S3, on-demand DynamoDB, log groups, APIs, queues, topics) are priced at a documented low-traffic profile and shown as an illustration, not a bill. It raises the headline (
headline_monthly_usd,illustrated_monthly_usd) but nevertotal_monthly_usd, budgets or--compare-cost. A usage file replaces it (#125) - Flat prices for CloudWatch alarms ($0.10, high resolution $0.30), dashboards after the three free ones ($3) and WAFv2 web ACLs ($5 + $1 per rule). API Gateway authorizers, gateway responses and uncached stages, CloudFront OAC, WAFv2 logging, standard SSM parameters, the first two budgets and Cognito app clients count as free. One line names what has no cost model yet;
prices_unavailablesays when no price could be used instead of showing $0 (#125) - Ollama: calls take turns,
Reviewing <pillar>prints when that call starts,LLM_TIMEOUT_S(default 300), JSON replies requested. In V2 the pillars that answered keep their verdicts when another fails (llm.statuspartial); hypotheses run only when every pillar answered (#125) - Progress prints one line per phase; rules report
Checking rules (n/total, lang)(#125) - The HTML report opens with the summary and shows one card per rule and severity, with locations collapsed (#125)
v1.2.0
Changes
- New template checks for CloudFormation and Terraform, all Low:
CF-SUST-004..007(accelerators with no utilization alarm or schedule, instance store with no durable store, EBS volumes with no shared store, backups of cache or temp data),CF-TAG-002(created-by and owner tags; CDK app tags and Terraformdefault_tagscount),CF-OBS-001..003(dependency alarms, workload-metric alarms, tracing),CF-ALARM-004(an alarm that starts automation), andCF-DEMAND-001/002(an API or a directly invoked Lambda with no throttle or buffer, reported for cost and for sustainability).CF-VPC-002/003also answer COST08-BP02 (#123) --live-accountreads, all read-only: RDS Reserved Instances, ElastiCache reserved nodes and Savings Plans (COST-005/009/016) when the scan has that compute; the account-level FSBP controls S3.1, EC2.7 and IAM.7 as new findingsACCT-001..003; Macie (SEC-065) and Storage Lens (COST-018); and, behind therules.orggate, a Cost and Usage Report or Data Exports export (ACCT-004). A denied read is a warning, never a finding (#123)- The usage file can state usage signals (
read_write_ratio,avg_cpu_percent,get_parameter_tps, and aworkload:block withtraffic_pattern,user_regions,upload_regions). REL-011, OPS-023, SUST-002, SUST-003, PERF-011 and PERF-014 now report only when it does; before, they fired on a CDK construct alone. SUST-004 and SUST-005 answer from a repo note that names the batch path or the self-managed components and says why (#123) --live-accountwithoutrules.orgno longer turns REPO-069 on;ACCT-004replaces that read behind the same gate.CF-APIGW-005no longer judgesMethodSettingsgiven as an intrinsic (#123)- No rule is advice-only any more;
docs/COVERAGE.mdgives the answer for every rule (#123)
v1.1.0
Changes
- A scan prints each step as it runs: detecting the source, reading files, every rule (
SEC-001 (12/174, typescript)), each CloudFormation template, each Terraform module, CDK synth, and any LLM call. A step still running after 15 seconds is printed again, so a long scan does not look stalled. The report file and exit codes are unchanged - The README is shorter
v1.0.0
Breaking
- A plain
aws-arch-agent --repo <path>now writes an HTML report toreport.html(was Markdown inreport.md). Without--format, the--outsuffix (.md,.json,.sarif,.html) picks the format, so--out report.mdstill writes Markdown. The GitHub Action passes these flags and is unaffected (#119) --modedefaults toauto: V2 for a CDK app (acdk.jsonat the repo root) when thev2extra and Node.js are installed, or with--templates; V1 otherwise, with a console note when a CDK repo stays on V1.--mode v1restores the old default (#119)- The bundled offline price snapshot (
prices.json.gz) andscripts/refresh_prices.pyare removed; prices are fetched live (#117)
Changes
- Live AWS pricing for any region: the Price List Query API when boto3 and credentials are available (
pip install 'aws-arch-agent[aws]'), else the public bulk API, with a 24-hour SQLite cache and an expired-cache fallback. A scan never fails because pricing failed. New flags--pricing-source auto|api|bulk|off,--price-cache-ttl,--refresh-prices; configpricing.*(#117) - The stack cost covers load balancers, EKS, Fargate services, ElastiCache, OpenSearch, Redshift, interface endpoints, KMS keys, Secrets Manager, Kinesis, RDS storage, EBS IOPS and throughput, and Auto Scaling groups. A Terraform literal
count = Nmultiplies a resource's cost; Terraform adapters keep the cost attributes these need (#117) - Optional usage profile (
.aws-arch-agent-usage.yaml,--usage-file, configusage_file) prices usage-billed resources, reported apart from fixed cost and tagged "usage assumed" (#117) --compare-costdiffs the cost against a baselinecost_snapshot(now written by--update-baseline) or an earlier JSON report;--max-monthly-costand--max-cost-increase(USD or %), or configbudget.*, exit 1 on a breach. CDK source in V1 gets a hint to use V2 for cost (#117)- Reports: an HTML cost tab and monthly-cost card; Markdown budget, price source, fixed vs usage and cost-change lines;
context.notes.costandcontext.notes.pricesgain new fields in the JSON schema (#117) - After a scan the terminal prints the severity counts, up to five top fixes and the report path; the report file and exit codes are unchanged. The "Wrote report to" line no longer breaks on paths with brackets (#118)
- With no LLM environment variables set, a local Ollama on
localhost:11434is used when it answers (llama3:8bif pulled, else the first chat model); otherwise the LLM is skipped with a note (#119)
v0.5.0
Changes
- Walk files in a fixed order (sorted per directory), so the same repo gives the same files on every run and OS. A walk that hits
--max-filesprints a console note, adds a note to the Markdown metadata, and recordsfiles_truncatedandmax_filesincontext.notes; the exit code does not change (#114) - CloudFormation findings from YAML and JSON templates carry the 1-based line of the resource's logical ID (#114)
- Suppress a finding inline with
# aws-arch-agent: ignore <RULE_ID>[, ...] [reason="..."] [expires=YYYY-MM-DD](or//) on its line or the line above, or withMetadata: {aws-arch-agent: {ignore: [...]}}on a template resource. Suppressed findings stay in the report, labelled, and do not count for--fail-on; an expired one is a warning and counts again. New config keyrules.exclude_pathsskips rule IDs in files matching a path glob (#114) - SARIF sets
tool.driver.versionandinformationUri, ahelpUriper rule,partialFingerprints(awsArchAgent/v1), andsuppressions:inSourcefor inline and Metadata suppressions,externalfor baseline-accepted findings (which keepproperties.baselined) (#114) --tf-planfills planned values in local child modules at any depth, each module call with its own values, and ties split S3 and ECR settings resources tocountandfor_eachinstances (#114)- A CDK source scan without synth turns on the AI lenses when Bedrock, SageMaker, or AgentCore constructs appear in TypeScript or Python source outside tests;
lenses.aistill overrides (#114) - New AI lens checks: Bedrock guardrails, keys, aliases, prompt versions and token limits (CF-BEDROCK-005 to CF-BEDROCK-012), AgentCore runtime, gateway and memory (CF-AGENTCORE-001 to CF-AGENTCORE-003), SageMaker notebooks, Studio domains, data capture, endpoint scaling, feature groups and the model registry (CF-SAGE-007 to CF-SAGE-013), and repo checks for Bedrock calls, evaluation steps, model cards, bias evaluation and human escalation (REPO-199 to REPO-204) (#114)
- GitHub Action: new inputs
tf-plan,live-account(also installs theaccountextra),region,theme,group-by,config,templates, andjob-summary, which appends the Markdown report to the job summary even whenfail-onfails the scan (#114) - Docs and
--helpdescribe V2 Terraform scans and the CDK, CloudFormation, Terraform, live account and AI lens scope (#114) rules.exclude_pathsrule IDs match without regard to case (#115)- Line numbers count
\nonly, so a form feed in source or a\u2028in a quoted YAML value no longer shifts a finding's line or a suppression (#115) - A finding in a Terraform child module called more than once names the module calls it came from (#115)
- REPO-199 and REPO-200 follow local imports: a guardrail or token limit in a module the call file imports, or in a file that imports it, counts (#115)
- Replace 10 AWS documentation links whose pages moved, and check every linked page in a new Doc links workflow: on changes to the link map, weekly, and by hand (#114, #115)
v0.4.0
Changes
- Read resources for six best practices that only a repo rule answered: user experience telemetry (CF-SYN-001), log analysis (CF-LOGS-001), cost anomaly alerts (CF-CE-001), unattached EBS volumes (CF-EBS-003), RDS storage autoscaling (CF-RDS-015) and noncurrent S3 versions (CF-S3-013).
docs/COVERAGE.mdlists the practices that stay on a repo rule (#112) - Close the seven partial CDK/template pairs. CF-NACL-001 also reports a VPC with no custom network ACL, CF-RDS-003 an Aurora cluster with one DB instance, and new CF-ECS-013 an ECS service nothing scales. CF-PERF-002 reads ALBs, API caches and DAX. PERF-008 reads RDS only and SUST-001 reads fleets only. All seven are now covered in V2 (#112)
- Check Java Lambda functions for SnapStart (CF-LAM-010) and functions outside a VPC that reach a private RDS or ElastiCache store (CF-LAM-011); they replace PERF-015 and REL-010 in V2 (#112)
- Remove 15 advice rules that read no property: REL-023, REL-025, COST-004, COST-017, OPS-004, OPS-022, PERF-003, PERF-005, PERF-009, PERF-010, PERF-012, PERF-016, PERF-017, PERF-018, PERF-019. Their IDs in
rules.includeorrules.excludeare ignored (#112) - CF-PERF-002 no longer fires on a template with Lambda and no API or load balancer (#112)
- A CDK scan without
cdk synthoutput now reports OPS06-BP03 as not checked (#112) - Install from PyPI (pip or pipx) in the README
v0.3.1
Changes
- Mention the AI lenses and their checks in the README
- First release published to PyPI from the release workflow with trusted publishing