A SysOps Administrator is setting up automated OS patching for a fleet of Amazon EC2 instances running Ubuntu 22.04 LTS. The organization requires a custom patch baseline that automatically approves security updates with a 'Critical' or 'Important' severity 10 days after release. Patching must occur during a weekly maintenance window, and target instances must be grouped dynamically. Arrange the steps in the correct chronological order to configure this automated patch management workflow, starting with the baseline configuration.
- 1Create a custom patch baseline for Ubuntu specifying the approval rules for Critical and Important security updates with a 10-day auto-approval delay.
- 2Tag the target EC2 instances with the case-sensitive tag key 'Patch Group' and a unique value like 'Prod-Ubuntu'.
- 3Associate the 'Prod-Ubuntu' patch group with the newly created custom patch baseline.
- 4Create a Systems Manager Maintenance Window defining the weekly schedule, duration, and cutoff for the patch operations.
- 5Register the target instances with the Maintenance Window by referencing the 'Prod-Ubuntu' tag.
- 6Register the 'AWS-RunPatchBaseline' Run Command task with the Maintenance Window, specifying the registered targets and setting the operation parameter to 'Install'.
Answer
To configure the automated patch management workflow: 1. Create a custom patch baseline for Ubuntu with the specified rules. 2. Tag the target EC2 instances with the case-sensitive tag key 'Patch Group'. 3. Associate the patch group with the custom patch baseline. 4. Create a Systems Manager Maintenance Window. 5. Register the target instances with the Maintenance Window. 6. Register the 'AWS-RunPatchBaseline' Run Command task with the Maintenance Window.
To automate patching with a custom baseline, the baseline must first be created with the required approval rules. Instances must then be tagged with the case-sensitive 'Patch Group' tag key to define the patch group. Next, the patch group is associated with the custom patch baseline. Then, a maintenance window is created to define the execution schedule. The target instances are registered with the maintenance window, and finally, the task executing the AWS-RunPatchBaseline document with the Install operation is registered to target those instances within the maintenance window.
Step-by-Step Solution
Key Concept
AWS Systems Manager Patch Manager configuration workflow involving custom baselines, case-sensitive patch groups, and maintenance window scheduling.
Estimated Time:2m 30s