AWS Systems Manager
User Guide

AWS Systems Manager Maintenance Windows

AWS 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, updating drivers, or installing software or patches. Each Maintenance Window has a schedule, a maximum duration, a set of registered targets (the instances that are acted upon), and a set of registered tasks. You can also specify dates that a Maintenance Window should not run before or after, and you can specify the international time zone on which to base the Maintenance Window schedule.

Maintenance Windows support running four types of tasks:

  • Systems Manager Run Command commands

  • Systems Manager Automation workflows

  • AWS Lambda functions

  • AWS Step Functions tasks

This means you can use Maintenance Windows to perform tasks like the following on your selected targets:

  • Install or update applications.

  • Apply patches.

  • Install or update SSM Agent.

  • Run PowerShell commands and Linux shell scripts by using a Systems Manager Run Command task.

  • Build Amazon Machine Images (AMIs), boot-strap software, and configure instances by using Systems Manager Automation.

  • Run AWS Lambda functions that trigger additional actions, such as scanning your instances for patch updates.

  • Run AWS Step Function state machines to perform tasks such as removing an instance from an Elastic Load Balancing environment, patching the instance, and then adding the instance back to the Elastic Load Balancing environment.