- Newest
- Most votes
- Most comments
When you run "Patch Now" on a Windows instance, it executes the AWS-RunPatchBaseline document to perform patching operations. Here's what happens during this process:
-
The operation first determines which patch baseline to use. If your Windows instance is associated with a patch group, it uses the patch baseline specified for that group. If not, it uses the default patch baseline for Windows Server (which could be the AWS-WindowsPredefinedPatchBaseline-OS-Applications or a custom baseline you've set as default).
-
The AWS-RunPatchBaseline document downloads and invokes a PowerShell module on your Windows instance.
-
This PowerShell module downloads a snapshot of the applicable patch baseline from Systems Manager.
-
The patch baseline snapshot contains a list of approved patches compiled by querying the patch baseline against a Windows Server Update Services (WSUS) server.
-
This list of approved patches is passed to the Windows Update API, which controls the downloading and installation of the patches.
-
The Windows Update API determines which of the approved patches are applicable to your instance and installs them as needed. Only the latest available version of a KB will be installed.
-
All Group Policy settings for Windows Update are respected during this process, including any settings directing instances to a WSUS server.
-
After patches are installed, the instance is rebooted (unless you specified the NoReboot option in the Patch Now settings).
The patching logs are stored on the Windows instance in the %PROGRAMDATA%\Amazon\PatchBaselineOperations\Logs folder if you need more detailed information about the patching operation.
Sources
How patches are installed - AWS Systems Manager
SSM Command document for patching: AWS-RunPatchBaseline - AWS Systems Manager
Patching managed nodes on demand - AWS Systems Manager
