Fleet Management with AWS Systems Manager - Automating Patch Management, Inventory, and Run Command
Automate patch management with Patch Manager, streamline remote operations with Run Command, and enable SSH-free shell access with Session Manager.
Key Features of Systems Manager
Systems Manager is a service that unifies operational management of EC2 instances and on-premises servers. Instances with the SSM Agent installed are managed as managed nodes, providing capabilities such as patch management, command execution, session connections, inventory collection, and parameter management. The SSM Agent comes pre-installed on Amazon Linux 2, Amazon Linux 2023, Ubuntu, and Windows Server AMIs. Systems Manager itself is free to use, with only EC2 instance charges applying.
Patch Management with Patch Manager
Patch Manager automates OS and application patching. Patch baselines define which patch classifications (security, bug fix, enhancement) and severities (Critical, Important, Medium, Low) to apply, along with approval rules (e.g., auto-approve 7 days after release). Maintenance windows define patching schedules (e.g., every Sunday at 2:00 AM) for automatic execution outside business hours. The patch compliance dashboard provides a fleet-wide view of patch status, making it easy to identify non-compliant instances. You can also configure automatic snapshot creation before patching, enabling rollback if issues arise after patch application.
Run Command and Session Manager
Run Command remotely executes SSM documents (predefined command sets) on managed nodes. AWS-RunShellScript executes shell commands, and AWS-RunPowerShellScript executes PowerShell commands. Targets can be specified by tags, resource groups, or manual selection, allowing commands to be sent to thousands of instances simultaneously. Session Manager provides browser-based shell access, eliminating the need for SSH key management and opening SSH ports in security groups. Session logs are automatically recorded to S3 or CloudWatch Logs, providing an audit trail of who executed which commands and when. For more on Systems Manager, you can also explore related books on Amazon.
Systems Manager Pricing
The core features of Systems Manager (Patch Manager, Run Command, Session Manager, Inventory) are free to use. There is no additional charge for installing and running the SSM Agent. Costs are incurred only for advanced features such as Advanced parameters (Parameter Store parameters over 8 KB, approximately $0.05/parameter/month), OpsCenter OpsItems (approximately $2.97 per 1,000 items), and Change Manager change requests (approximately $0.326 per 1,000 requests). There is no reason not to enable the free core features in every environment running EC2.
Summary
Systems Manager is a service that unifies and automates EC2 fleet operational management. Patch Manager automates patching, Run Command streamlines remote operations, and Session Manager provides secure shell access. It is free to use and recommended for adoption in every environment running EC2.