Amazon EC2 Systems Manager
User Guide

Systems Manager Maintenance Windows

Systems Manager Maintenance Windows let you define a schedule for when to perform potentially disruptive actions on your instances such as patching an operating system (OS), updating drivers, or installing software. Each Maintenance Window has a schedule, a duration, a set of registered targets, and a set of registered tasks. Each task is defined to run for a subset of the registered targets. Currently, you can perform tasks like installing applications, installing or updating SSM Agent, executing commands with Run Command, or installing patches (Windows).