Tutorials: Create and manage maintenance windows using the Amazon CLI - Amazon Systems Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Tutorials: Create and manage maintenance windows using the Amazon CLI

This section includes tutorials that help you learn how to use the Amazon Command Line Interface (Amazon CLI) to do the following:

  • Create and configure a maintenance window

  • View information about a maintenance window

  • View information about maintenance windows tasks and task executions

  • Update a maintenance window

  • Delete a maintenance window

Keep track of resource IDs

As you complete the tasks in these Amazon CLI tutorials, keep track of resource IDs generated by the commands you run. You use many of these as input for subsequent commands. For example, when you create the maintenance window, the system provides you with a maintenance window ID in the following format.

{
   "WindowId":"mw-0c50858d01EXAMPLE"
}

Make a note of the following system-generated IDs because the tutorials in this section use them:

  • WindowId

  • WindowTargetId

  • WindowTaskId

  • WindowExecutionId

  • TaskExecutionId

  • InvocationId

  • ExecutionId

You also need the ID of the EC2 instance that you plan to use in the tutorials. For example: i-02573cafcfEXAMPLE