What Systems Manager Is
AWS Systems Manager (SSM) is the operations hub to view, control and patch EC2 instances, on-premises servers and VMs without SSH keys or open inbound ports. It is central to the SysOps exam.
| Group | Capabilities |
|---|---|
| Node management | Fleet Manager, Inventory, Compliance, Session Manager, Run Command, State Manager, Patch Manager, Distributor, Hybrid Activations |
| Operations management | Explorer, OpsCenter, CloudWatch dashboards, Incident Manager |
| Change management | Automation, Change Manager, Maintenance Windows, Change Calendar |
| Application management | Parameter Store, AppConfig, Application Manager |
Making an Instance a Managed Node
- SSM Agent installed and running (preinstalled on Amazon Linux 2/2023, recent Ubuntu and Windows AMIs)
- Instance profile with
AmazonSSMManagedInstanceCorepolicy (or Default Host Management Configuration for the account) - Network path to SSM endpoints: internet/NAT, or VPC interface endpoints
ssm,ssmmessages,ec2messages(and S3 gateway endpoint for some features) - The instance appears under Fleet Manager as
Online
| Not showing in Fleet Manager? | Fix |
|---|---|
| No instance profile | Attach a role with AmazonSSMManagedInstanceCore |
| Agent stopped | Start amazon-ssm-agent, check /var/log/amazon/ssm/amazon-ssm-agent.log |
| No network path | Add NAT or the three VPC endpoints and allow HTTPS 443 outbound in the security group |
| Wrong Region or old AMI | Use a supported AMI and check the Region |
Session Manager
- Browser or CLI shell to instances through IAM. No SSH key, no bastion, no inbound port 22
- Every session can be logged to S3 and CloudWatch Logs and audited in CloudTrail
- Restrict with IAM (
ssm:StartSessionon tagged instances) and session documents - Port forwarding to reach private databases or RDP
Run Command
Run a command document on many instances at once, selected by instance ids, tags or resource groups, with rate controls, output to S3 and SNS notifications.
AWS-RunShellScript(Linux) andAWS-RunPowerShellScript(Windows) are common documents. Others:AWS-ConfigureAWSPackage,AWS-UpdateSSMAgent,AWS-RunPatchBaseline- **
MaxConcurrencyandMaxErrors** limit blast radius - Custom documents (JSON/YAML) become reusable runbooks
Patch Manager
| Concept | Meaning |
|---|---|
| Patch baseline | Rules about which patches are approved: OS, classification (Security, Bugfix), severity, auto-approval delay in days, approved and rejected lists. AWS provides default baselines per OS. Create custom baselines |
| Patch group / tag | Tag Patch Group (or newer tag-based targeting) links instances to a baseline |
| Operation | Scan (report only) or Install (apply, reboot if needed) |
| Document | AWS-RunPatchBaseline |
| Maintenance window | Scheduled time period to run tasks safely |
| Compliance | Shows which instances are compliant with the baseline |
| Patch policies (Quick Setup) | Org-wide patching configuration across accounts and Regions |
- Patch dev first, then prod with an approval delay
- Use rate control in the maintenance window task so only a few instances reboot at a time and Auto Scaling or the load balancer keeps service up
- For immutable fleets, patch the golden AMI and replace instances (instance refresh) instead of patching in place
State Manager
State Manager keeps instances in a desired state with associations: a document + targets + schedule. Examples: install or update the CloudWatch agent, ensure antivirus is running, run AWS-GatherSoftwareInventory, join a domain. It reapplies at each schedule so drift is corrected.
Inventory, Compliance and Explorer
- Inventory collects installed applications, network config, Windows updates, files and custom data. Use Resource Data Sync to send it to S3 for Athena queries
- Compliance shows patch and association status
- Explorer is a customizable dashboard of operational data and OpsItems across accounts and Regions
Distributor and Parameter Store
- Distributor packages and installs software (agents) on instances, versioned
- Parameter Store holds configuration and secrets (
SecureString) used by scripts and documents
Typical Ops Workflow
Practice Tasks
- Make an instance a managed node and confirm it is
Online - Open a Session Manager session and review the session log in S3
- Run
df -hon all instances with a tag using Run Command - Create a patch baseline, assign a patch group and run a scan
- Create an association that installs the CloudWatch agent and check its compliance
Conclusion
Systems Manager gives key-less access and fleet control: it needs the SSM Agent, an instance profile and a network path. Use Session Manager instead of SSH, Run Command with rate limits, Patch Manager baselines with maintenance windows, State Manager associations for desired state, and Inventory and Compliance for visibility.

