{% extends "base.html" %} {% block title %}VPC Atlas · History{% endblock %} {% block body %} {% macro resource_groups(label, key, groups) %} {% if groups %}

{{ label }} {{ groups|sum(attribute='count') }}

{% for group in groups %}
{{ group.type }} {{ group.count }}
{% if key == 'changed' %}{% endif %} {% for row in group.rows %} {% if key == 'changed' %} {% endif %} {% endfor %}
NameIdAccountRegionWhat changed
{{ row.name or '—' }} {{ row.id }} {{ row.account }} {{ row.region }} {% for field in row.fields %}
{{ field.field }}{% if field.valued %}: {{ field.before }} → {{ field.after }}{% endif %}
{% endfor %}
{% endfor %} {% endif %} {% endmacro %} {% macro link_changes(label, key, rows) %} {% if rows %}

{{ label }} {{ rows|length }}

{% for row in rows %} {% endfor %}
SourceKindTarget
{% if row.source_label %}{{ row.source_label }}
{% endif %}{{ row.source }}
{{ row.kind }} {% if row.target_label %}{{ row.target_label }}
{% endif %}{{ row.target }}
{% if row.cross_account %}cross-account{% endif %}
{% endif %} {% endmacro %}

VPC Atlas

v{{ version }}
History {{ rows|length }} snapshot{{ '' if rows|length == 1 else 's' }}
Diagrams
{% if problem %} {% endif %}

Timeline

{% if rows|length > 1 %} {% set from_id = selected_from or rows[1].snapshot_id %} {% set to_id = selected_to or rows[0].snapshot_id %}
{% endif %}
{% if rows %}
    {% for row in rows %} {% set c = row.counts %}
  1. {{ row.snapshot_id }} {% if loop.first %}latest{% endif %}
    {% if c %} +{{ c.added }} −{{ c.removed }} ~{{ c.changed }} links +{{ c.edges_added }} −{{ c.edges_removed }} {% else %} First snapshot in the history: nothing to compare it with. {% endif %}
    {% if row.previous_id %} Compare with previous View changes on diagram {% endif %}
  2. {% endfor %}
{% else %}

No snapshots yet. Each scan is kept here as soon as it finishes.

{% endif %}

Changes

{% if compare %} {% endif %}
{% if compare %}

From ({{ compare.older.snapshot_id }}) to ({{ compare.newer.snapshot_id }})

{% set n = view.counts %}
+{{ n.added }}
Resources added
−{{ n.removed }}
Resources removed
~{{ n.changed }}
Resources changed
+{{ n.edges_added }} −{{ n.edges_removed }}
Links added and removed
Cross-account links changed
{% if compare.is_empty %}

These two snapshots describe the same network: nothing was added, removed or changed.

{% endif %} {{ resource_groups('Resources added', 'added', view.added) }} {{ resource_groups('Resources removed', 'removed', view.removed) }} {{ resource_groups('Resources changed', 'changed', view.changed) }} {{ link_changes('Links added', 'edges_added', view.edges_added) }} {{ link_changes('Links removed', 'edges_removed', view.edges_removed) }} {% elif rows|length > 1 %}

Pick two snapshots above to see what changed between them.

{% elif rows %}

The history holds a single snapshot, so there is nothing to compare yet. The next scan will be compared with it.

{% else %}

Nothing to compare yet.

{% endif %}
{% endblock %}