{% if issues %}
    The following resources are not compliant with the Required Tagging standards:
    {% for data in issues %}
        *Account:* `{{ data.resource.account.account_name }}`
        *Region:* `{{ data.resource.location }}`
        *Resource ID:* `{{ data.resource.id }}`
        *Resource Type:* `{{ data.resource.resource_type }}`
        *Current State:* `{{ data.issue.state }}`
        *Missing Tags:* {{ ', '.join(data.issue.missing_tags) }}
        *Notes:* {{ data.issue.notes | slack_quote_join }}

    {% endfor %}
{% endif %}
{% if fixed %}
    Resources that are not tagged appropriately within a month of being detected as non-compliant *will be shutdown automatically* until tags have been added. To prevent this from happening have the owners of the resources to tag their assets correctly.

    The following instances are now compliant with the Required Tags standards and are no longer subject to being stopped:
    {% for resource in fixed %}
        *Account:* `{{ resource.account.account_name }}`
        *Region:* `{{ resource.location }}`
        *Resource ID:* `{{ resource.id }}`
        *Resource Type:* `{{ resource.resource_type }}`

    {% endfor %}
{% endif %}
