Final Year Project · AWS ap-southeast-5 (Malaysia)
Centralized agentless patch management
One serverless workflow patches Red Hat Enterprise Linux 9 and Windows Server 2022 over SSH and WinRM, checks every update with a rescan, and reports the result. Nothing is installed on the hosts.
Checking the latest patch results… Open the dashboard ↓
- EventBridge Schedulerweekly or one-time trigger
- Step Functionsparallel branch per host
- Lambdacredentials from Secrets Manager
- SSH 22 · RHEL 9 WinRM 5986 · Windows 2022
- SNS + CloudWatchemail and dashboard
Loading results…
How a patch cycle runs
-
Trigger
EventBridge Scheduler starts the
serverless-patch-cyclestate machine on the weekly schedule (Sunday 02:00 MYT) or for a one-time run. A run without"mode": "patch"only scans. -
Discover and precheck
Step Functions picks running instances tagged
PatchTarget=trueand opens a parallel branch per host. Each branch first checks that the host is ready (access, no other update running, free disk space) and that its workload is healthy. -
Patch without an agent
Lambda connects with credentials from Secrets Manager:
dnf upgrade --securityover SSH on RHEL, the Windows Update API through a one-shot SYSTEM task over WinRM on Windows. The install runs on the host and Lambda polls it. -
Verify and report
After a reboot if needed, each host is rescanned and its workload checked. Only updates the rescan confirms as fixed count as success. The metrics Lambda writes the records to CloudWatch and SNS emails the result.