Tutorials: Create and manage maintenance windows using the AWS CLI - AWS Systems Manager

Tutorials: Create and manage maintenance windows using the AWS CLI

This section includes tutorials that help you learn how to use the AWS Command Line Interface (AWS 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 AWS 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