Patch Manager patch baselines, patch groups and Scan vs Install
A patch baseline defines which patches are approved for a node. The Systems Manager User Guide says predefined baselines cannot be customized, so different approval delays or rejected patches need a custom baseline. A node uses the baseline registered for its patch group, or the default baseline for its operating system if it has no patch group.
Predefined vs custom patch baselines
Patch Manager provides a predefined baseline for each supported operating system, and these act as the defaults. You can use them as they are but cannot change them. The predefined baselines auto-approve patches 7 days after release. For Windows Server, installing a patch within 7 days of release requires a custom baseline.
A custom baseline has approval rules that select patches by classification and severity. Each rule takes either an auto-approval delay or an approval cutoff date. The delay is the number of days after a patch is released or last updated before it is approved, so a rule with a 7-day delay approves a patch released on July 7 on July 14. Because the delay is counted per patch, the rule needs no monthly upkeep.
A custom baseline can be made the default for its operating system. It can also set a compliance severity level, which predefined baselines leave as Unspecified. A patch listed as both approved and rejected in one baseline is rejected.
How does a node choose its baseline?
A patch group is defined by a tag with the key Patch Group or PatchGroup on the managed node. You register the patch group with a baseline. When patching runs, SSM Agent checks the node for a patch group value. If the group has a registered baseline, that baseline is used. If the node has no patch group, the current default baseline is used.
A managed node can be in only one patch group, and a patch group can be registered with only one baseline for each operating system type. If tags are allowed in EC2 instance metadata, the key must be PatchGroup without a space. Patch groups are not used by patch policies in Quick Setup.
Scan vs Install in AWS-RunPatchBaseline
AWS-RunPatchBaseline requires the Operation parameter, set to Scan or Install. Scan works out the node's patch compliance state and reports which approved, applicable updates are missing. It installs nothing and does not reboot the node.
Install attempts to install the approved and applicable updates that are missing. RebootOption defaults to RebootIfNeeded. Set it to NoReboot to keep the node from rebooting after patching.
InstallOverrideList points to a YAML list of patches that overrides the baseline for one install. Scan operations ignore it, so compliance reports always reflect the baseline.
Where the exam catches people
Believing a predefined baseline can be edited to change its approval delay: predefined baselines cannot be customized. Create a custom baseline.
Believing a node with no patch group tag is skipped: it is patched against the default baseline for its operating system.
Believing a node can belong to two patch groups: a managed node can be in only one.
Believing a Scan installs missing patches or reboots: it only reports compliance.
Believing a patch on both the approved and rejected lists is installed: the rejection wins.