{% macro location(f, loc) %}
{% if loc.location %}File: {{ loc.location }}{% endif %} {% if loc.environment %}Environment: {{ loc.environment }}{% endif %} {% if loc.verdict %}LLM verdict: {{ loc.verdict.label }} — {{ loc.verdict.why }}{% endif %} {% if loc.baseline and f.locations | length > 1 %}{{ "Accepted" if loc.baseline == "accepted" else "New" }}{% endif %} {% if loc.suppressed %}Status: {{ loc.suppressed }}{% if loc.suppression_reason %} — {{ loc.suppression_reason }}{% endif %}{% endif %}
{% if loc.estimates %}

Estimate

{% endif %} {% if loc.evidence %}

Evidence

{{ loc.evidence }}
{% endif %} {% if not f.recommendation and loc.recommendation %}

Recommendation

{{ loc.recommendation }}

{% endif %} {% if loc.suggested_code and not f.suggested_code %}

Suggested code

{{ loc.suggested_code }}
{% endif %} {% endmacro %} {% macro fix_item(x) %}
  • {{ x.id }} {{ x.title }} ({{ x.severity }}, {{ x.findings }} resource{{ "s" if x.findings != 1 else "" }}{% if x.monthly_savings_usd %}, saves about ${{ "{:,.2f}".format(x.monthly_savings_usd) }}/month (estimate){% endif %}, {{ x.effort }} effort){% if x.first_location %}, e.g. {{ x.first_location }}{% endif %}
  • {% endmacro %} AWS Architecture Review

    AWS Architecture Review

    Repo: {{ repo }} Source: {{ source }} Files scanned: {{ files_scanned }} {% if prices %}Prices: {{ prices }}{% endif %} Generated: {{ generated }} {% if baseline %} Baseline: {{ baseline.accepted }} accepted, {{ baseline.new }} new {% endif %}

    {% if baseline %}

    Accepted findings stay in the report and do not fail the build.

    {% endif %}
    {% for sev in severities %}
    {{ counts[sev] }}
    {{ sev }}
    {% endfor %}
    {{ warnings | length }}
    Warnings
    {% if cost and cost.stacks %} {% set headline = cost.headline_monthly_usd if cost.headline_monthly_usd is defined else cost.total_monthly_usd %}
    {% if cost.prices_unavailable %}n/a{% else %}${{ "{:,.0f}".format(headline) }}{% endif %}
    {% if cost.prices_unavailable %}No prices{% elif cost.illustrated_monthly_usd %}Illustrated monthly cost{% else %}Est. monthly cost{% endif %}{% if cost.budget %} · budget {{ "passed" if cost.budget.passed else "FAILED" }}{% endif %}
    {% endif %}
    {% if warnings %}

    Analysis warnings

    {% endif %}
    {% if summary.findings %}

    Summary

    {{ summary.findings }} findings: {{ summary.by_severity.High }} High, {{ summary.by_severity.Medium }} Medium, {{ summary.by_severity.Low }} Low.{% if summary.monthly_savings_usd %} About ${{ "{:,.2f}".format(summary.monthly_savings_usd) }}/month possible savings (estimate).{% endif %}

    Top fixes

      {% for x in summary.top_fixes %}{{ fix_item(x) }}{% endfor %}

    By pillar

      {% for line in pillar_lines %}
    • {{ line }}
    • {% endfor %}
    {% if theme_lines %}

    By theme

    A finding can be in more than one.

      {% for line in theme_lines %}
    • {{ line }}
    • {% endfor %}
    {% endif %} {% if summary.quick_wins %}

    Quick wins

    Low effort, with suggested code.

      {% for x in summary.quick_wins %}{{ fix_item(x) }}{% endfor %}
    {% endif %}
    {% endif %}
    {% for f in findings %}
    {{ f.severity }} {{ f.id }}

    {{ f.title }}

    {% if f.baseline %} {{ "Accepted" if f.baseline == "accepted" else "New" }} {% endif %} {% if f.suppressed %} Suppressed {% endif %}
    Pillar: {{ f.pillar }} {% if f.locations | length > 1 %}Resources: {{ f.locations | length }}{% endif %}
    {% if f.recommendation %}

    Recommendation

    {{ f.recommendation }}

    {% endif %} {% if f.suggested_code %}

    Suggested code

    {{ f.suggested_code }}
    {% endif %} {% if f.locations | length > 1 %}
    {{ f.locations | length }} locations {% for loc in f.locations %}
    {{ location(f, loc) }}
    {% endfor %}
    {% else %} {% for loc in f.locations %}{{ location(f, loc) }}{% endfor %} {% endif %} {% if f.docs %}

    Learn more

    {% endif %}
    {% endfor %}

    No findings.

    {% if cost and cost.stacks %} {% elif cost_hint %}

    {{ cost_hint }}

    {% endif %} {% if hypotheses %}

    Unverified hypotheses

    The model named these catalog rules in files with no finding. No check confirmed them. They are not findings and do not affect fail-on, the baseline, or SARIF.

      {% for h in hypotheses %}
    • {{ h.rule_id }} {{ h.title }}: {{ h.file }}:{{ h.line }} — {{ h.why }}
    • {% endfor %}
    {% endif %}