How to Configure Maintenance Windows for Window and Linux by Using AWS Systems Manager

1. Create EC2 for Window and Linux

Use Microsoft Windows Server 2022 for Window

Use Ubuntu Server 22.04 LTS for Ubuntu

It will take some minutes to set up

Modify IAM role for TKK-Window

Choose SSM Role and Click Update …


This content originally appeared on DEV Community and was authored by Thu Kha Kyawe

1. Create EC2 for Window and Linux

  • Use Microsoft Windows Server 2022 for Window

  • Use Ubuntu Server 22.04 LTS for Ubuntu

  • It will take some minutes to set up

  • Modify IAM role for TKK-Window

  • Choose SSM Role and Click Update IAM role

  • Modify IAM role and Update IAM role for TKK-Linux too

2. Create a maintenance window at Systems Manager

  • In the navigation bar, type Systems Manager into the search box, and then select the Systems Manager.

  • In the navigation pane, in Change Management, select Maintenance Windows.

  • Select Create Maintenance Window.

  • In Name, write Patching-Maintenance-Window
  • In Description, enter Patching Maintenance Window - weekly every Sunday at 1 AM.
  • In Schedule, select Rate schedule builder.
  • In Window starts, enter 7, and then select Day(s).
  • In Duration, enter 6 hours.
  • In Stop initiating tasks, enter 2 hour before the window closes.
  • In Window start date, select the calendar, and then select the first Sunday after the current date.
  • In Time, enter 01:00:00, and then in timezone, select your current timezone.
  • In Schedule time zone, select your current timezone.
  • Select Create maintenance window.

  • Select Create Maintenance Window.

  • In Name, write SSMAgentupdate-Maintenance-Window
  • In Description, enter SSMAgentupdate-Maintenance-Window - every 1 hour.
  • In Schedule, select Rate schedule builder.
  • In Window starts, enter 1, and then select Hour(s).
  • In Duration, enter 6 hours.
  • In Stop initiating tasks, enter 0 hour before the window closes.

3.Register targets to the maintenance windows

  • In Maintenance windows, select Patching-Maintenance-Window, and then on the Actions menu, select Register targets.

  • In Target name, enter PatchTargets
  • In Target selection, select Choose instances manually
  • Select Linux and Windows, and then select Register target

  • In Maintenance windows, select SSMAgentupdate-Maintenance-Window, and then on the Actions menu, select Register targets.

  • In Target name, enter SSMAgentTarget
  • In Target selection, select Choose instances manually
  • Select Linux and Windows, and then select Register target

4. Add a task to a maintenance window

  • On the Maintenance windows page, select Patching-Maintenance-Window
  • On the Actions menu, select Register Run command task

  • In Name, enter RunPatchBaseline-task
  • In Command document, search for and select AWS-RunPatchBaseline
  • In Targets, ensure that Selecting registered target groups is selected, and then select the PatchTarget check box.
  • In Rate control, in Concurrency, in targets, enter 2, and then in Error threshold, in errors, enter 2
  • In Parameters, In Operation, select Install
  • Review the remaining default settings, and then select Register Run command task

  • On the Maintenance windows page, select SSMAgentupdate-Maintenance-Window
  • On the Actions menu, select Register Run command task

  • In Name, enter UpdateSSMAgent-task
  • In Command document, search for and select AWS-UpdateSSMAgent
  • In Targets, ensure that Selecting registered target groups is selected, and then select the SSMAgentTarget check box.
  • In Rate control, in Concurrency, in targets, enter 2, and then in Error threshold, in errors, enter 2
  • Review the remaining default settings, and then select Register Run command task

5. Verify that the Run Command task completes during the maintenance window

  • On the Maintenance windows page, select SSMAgentupdate-Maintenance-Window
  • On the History tab, verify that there are executions every 1 hour.
  • Verify that the AWS-UpdateSSMAgent Run Command task has a status of Success.

That it is. Congratulations, you have completed *How to Configure Maintenance Windows for Window and Linux by Using AWS Systems Manager*

Repository: AWS Learning Labs


This content originally appeared on DEV Community and was authored by Thu Kha Kyawe


Print Share Comment Cite Upload Translate Updates
APA

Thu Kha Kyawe | Sciencx (2025-11-08T03:48:51+00:00) How to Configure Maintenance Windows for Window and Linux by Using AWS Systems Manager. Retrieved from https://www.scien.cx/2025/11/08/how-to-configure-maintenance-windows-for-window-and-linux-by-using-aws-systems-manager/

MLA
" » How to Configure Maintenance Windows for Window and Linux by Using AWS Systems Manager." Thu Kha Kyawe | Sciencx - Saturday November 8, 2025, https://www.scien.cx/2025/11/08/how-to-configure-maintenance-windows-for-window-and-linux-by-using-aws-systems-manager/
HARVARD
Thu Kha Kyawe | Sciencx Saturday November 8, 2025 » How to Configure Maintenance Windows for Window and Linux by Using AWS Systems Manager., viewed ,<https://www.scien.cx/2025/11/08/how-to-configure-maintenance-windows-for-window-and-linux-by-using-aws-systems-manager/>
VANCOUVER
Thu Kha Kyawe | Sciencx - » How to Configure Maintenance Windows for Window and Linux by Using AWS Systems Manager. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/11/08/how-to-configure-maintenance-windows-for-window-and-linux-by-using-aws-systems-manager/
CHICAGO
" » How to Configure Maintenance Windows for Window and Linux by Using AWS Systems Manager." Thu Kha Kyawe | Sciencx - Accessed . https://www.scien.cx/2025/11/08/how-to-configure-maintenance-windows-for-window-and-linux-by-using-aws-systems-manager/
IEEE
" » How to Configure Maintenance Windows for Window and Linux by Using AWS Systems Manager." Thu Kha Kyawe | Sciencx [Online]. Available: https://www.scien.cx/2025/11/08/how-to-configure-maintenance-windows-for-window-and-linux-by-using-aws-systems-manager/. [Accessed: ]
rf:citation
» How to Configure Maintenance Windows for Window and Linux by Using AWS Systems Manager | Thu Kha Kyawe | Sciencx | https://www.scien.cx/2025/11/08/how-to-configure-maintenance-windows-for-window-and-linux-by-using-aws-systems-manager/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.