Create a Rule from scratch

In this section, we are going to go create a rule from scratch. In the process, you will learn about the three components of a rule.

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, which will deliver:

  1. A list of targeted resources
  2. A snooze option (defer this execution until later)
  3. A cancel option (ignore this instance of a recurring schedule)

Rule Overview

Anatomy of a Rule

There are three components in a rule:

  1. Context (Definition)
  2. Trigger (Definition)
  3. Action (Definition)

First, we'll take a look at the context.