{% for account_name, account_results in results.items() %}
Below is the report on {{ service }} reserved instances:
{% if results_list[0] %}Used/Unused | Count | Type | AZ | Details | {% for type, count in results_list[0].items() %}
---|---|---|---|---|
UNUSED RESERVATION! | {{ count }} | {{ type[0] }} | {{ type[1] }} | {% if reserve_expiry %} Expires in {{ reserve_expiry[type]|string }} days. {% endif %} |
You have no unused {{ service }} reservations.
{% endif %} {% if results_list[1] %}Used/Unused | Count | Type | AZ | Details | {% for type, count in results_list[1].items() %}
---|---|---|---|---|
NOT RESERVED! | {{ count }} | {{ type[0] }} | {{ type[1] }} | {% if instance_ids %} {{ ", ".join(instance_ids[type]) }} {% endif %} |
You have no unreserved {{ service }} instances.
{% endif %}({{ results_list[2] }}) running on-demand {{ service }} instances
({{ results_list[3] }}) {{ service }} reservations
{% endfor %} {% endfor %}