AWS in 1 Min · Episode 160

AWS Patch Manager explained: baselines, patch policies and safe rollouts

Patching on a schedule, safely. Watch the one-minute video, then read the details.

David Gomez1:09 video · 2 min read

"Automatic patching will break production." It can, if every server gets every update at the same moment. But skipping patches is worse: unpatched servers are an open door. The answer is control, not avoidance. AWS Systems Manager Patch Manager lets you decide which patches are approved, when they go in, and on which servers first. One thing to know up front: AWS doesn't test patches before making them available in Patch Manager, so staging is your job.

What Patch Manager does

Patch Manager is a tool in AWS Systems Manager that scans and patches managed nodes: EC2 instances, on-premises servers, VMs and edge devices running supported Linux distributions, Windows Server and macOS. It handles operating system updates and, on Windows Server, updates for Microsoft applications. It doesn't do major OS upgrades (RHEL 8 to 9, for example).

Patch baselines: what is approved

A patch baseline defines compliance for one operating system. Rules select patches by classification (Security, Bugfix…) and severity (Critical, Important…), and can auto-approve a patch a number of days after its release, for example seven. You can also list patches to always approve or always reject. AWS ships predefined baselines, but its own docs call them examples; create custom baselines for production.

By default on Linux, Patch Manager focuses on security updates from the repositories configured on the node. A custom baseline can include non-security updates or point to other repositories.

Scan, install and schedules

  • Scan only reports which approved patches are missing.
  • Scan and install applies them, with rate controls for how many nodes are patched at once and how many errors stop the run.
  • A patch policy in Quick Setup is the recommended way to schedule this. One policy can cover your whole AWS Organization, chosen OUs, or one account and Region, with separate scan and install schedules.
  • Maintenance windows and Patch now are the other options.

Compliance reports

After a scan, the console shows which nodes are non-compliant and which patches each one is missing. Reports can be exported as CSV to S3, and results can flow into Security Hub CSPM and AWS Config. "Compliant" only means the approved patches are installed; it is not a guarantee the server is secure.

A common mistake is approving patches the day they're released for every environment. Use the approval delay or separate baselines and schedules so test servers patch first and production follows days later.

Where AI fits

GPU servers add a twist: the NVIDIA driver must match the CUDA version your frameworks expect, and an unplanned driver jump can break training or inference. If drivers come from a repository on the node, put them on the baseline's rejected list (or leave that repository out) until you've tested the new version, patch one GPU node first, and use a lifecycle hook (Patch Manager can run SSM documents before and after patching) to run a GPU health check such as nvidia-smi and a small test job before the rest of the fleet follows.

Quick recap

  • Baselines decide what gets installed; auto-approval delays buy you test time.
  • Patch policies decide when, across accounts and Regions.
  • Test GPU nodes first, with a health check after patching.
AWS in 1 Min #160 · 1:09

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS