AWS Systems Manager
User Guide

Systems Manager Maintenance Windows Tutorials (AWS CLI)

This section includes several tutorials to help you learn how to use the AWS CLI to create, configure, update, view information about, and delete maintenance windows.

Verify or Complete Tutorial Prerequisites

Before trying these tutorials, complete the following tasks:

Task 1: Download and configure the AWS CLI

For information, see Installing the AWS Command Line Interface and Configuring the AWS CLI.

Task 2: Configure maintenance window roles and permissions

For information, see Controlling Access to Maintenance Windows.

Task 3: Create or configure Systems Manager-compatible instances

You need at least one properly configured Amazon EC2 instance to complete the tutorials. We recommend launching an Amazon Linux or Amazon Linux 2 instance, which come with SSM Agent preinstalled. For information about configuring instances to use with Systems Manager, see the following topics in the Setting Up section of this user guide:

Task 4: Create additional resources as needed

Many Run Command type tasks do not require you to create resources other than those listed in this prerequisites topic. For that reason, we provide a simple Run Command task for you to use your first time through the tutorials. If a maintenance window task you want to run requires additional resources, however, you should create them first. For example, if you want a maintenance window that runs an AWS Lambda function, create the Lambda function before you begin. .