The Check Tag Compliance Action is used to compare resources against a set of Tag Groups to validate if they conform or don't conform, and then notify you of the result.
**AWS**: It uses a number of
List* endpoints in the AWS API - see the
for the Check Tag Compliance Action for a full list of the IAM permissions required.
**Azure**: The default template permissions provide access to the API functions used to list and describe resources and their tags.
GorillaStack regularly aggregates the resources in your environment. The results are stored and used as the input to the Check Tag Compliance Action.
In the Action configuration, you first select one or more resource types to run the check against. You then select one or more Tag Groups that should be used to compare against each resource’s tags, along with a reporting mode that specifies if a resource should be reported when it either matches or does not match the tag group combination.
When the Action runs, it will use the aggregated tag information about your resources to test for tag compliance, and report according to the conditions. You can specify if it should notify you when there are resources reported (matching/not matching) via Slack or email.
You can use the Action by setting up a rule. We recommend setting up a rule with a Schedule Trigger to run the Action on a regular basis (e.g. once a day).
You'll need to have set up one or more Tag Groups you wish to check resources against. They are used to see if the resource’s tags either comply or don't comply with the matching pattern in the tag group in the Conditions
(See the user guide on Tag Groups for more details.)
There are three tabs used to configure the Action:
On this tab, you can select to check all resource types, or just certain resource types to report on.
Check Report Type
This changes the reporting mode. You can select to report Resources matching the selected tag groups, or inversely, Resources not matching the selected tag groups.
This is the set of tag groups to test against. You can combine multiple tag groups with an AND relationship (all tag groups must match/not match) or an OR relationship (one or more of the tag groups must match/not match).
This selects when to send the notification. For example, you may only wish to send it when resources match the conditions on the Conditions tab, or to always send it. The full results of the Action execution are available in the Event Log.
This is where to send the report (Slack and/or email). If you don't select a destination, the action will still run but no notification will be sent (the same as selecting Never for the When type).
The compliance report will be available in summary via Slack and/or email (when they are configured as Notification destinations). For a more detailed summary, you will need to refer to the Event Log and expand the View Raw Data section.