The Action is the operation that will occur when the Trigger is observed.
The Action runs against all matching resources within our context.
This rule will help us periodically delete all but the last 30 snapshots matching a Tag Group. Additionally, we will set up a notification to be delivered 30 minutes before the action is scheduled to take place, to allow users to Snooze or Cancel.
As the Rule we are trying to create is intended to clean up old snapshots, we select the "Delete Snapshots" action.
Now, we need to determine which snapshots we want to tag. In this example, we will target all snapshots for simplicity. However, we can target our snapshots by combinations of different resource tags, using a GorillaStack configuration called a Tag Group. For a user guide on creating your first Tag Group, read a guide on creating a Tag Group.
Next, we go to the "Snapshot Settings" link in the left nav. Here, we select the snapshot retention policy we wish to enforce.