Although you can trigger automation documents manually, it's far better to either schedule or automate the execution of automation jobs using CloudWatch schedules and events.
Let's first understand how you can leverage CloudWatch events to trigger simple notifications of Systems Manager Automation events. These events can be used to notify you of whether your automation task succeeded, failed, or simply timed out:
- First, log in to the CloudWatch dashboard. Alternatively, you can open CloudWatch via https://console.aws.amazon.com/cloudwatch/.
- Next, from the navigation pane, select the Events option to bring up the Create rule page. Here, select Event Pattern from the Event Source ...