SSM (AWS Systems Manager)
Manage configuration, patches, and secure shell access for EC2 instances and on-premises servers without SSH keys or bastion hosts.
TL;DR Checklist
- [ ] Install SSM agent on all instances (pre-installed on recent AMIs)
- [ ] Create IAM role with AmazonSSMManagedInstanceCore policy
- [ ] Use Session Manager for secure shell access (no SSH keys)
- [ ] Enable CloudTrail logging of Session Manager sessions
- [ ] Use Parameter Store for application configuration
- [ ] Enable Patch Manager for automated patching
- [ ] Implement maintenance windows for patch deployment
- [ ] Use State Manager for configuration compliance
- [ ] Monitor session and patch activity
- [ ] Configure session recording to S3 for audit
When to Use
Use SSM when:
- Managing EC2 instance configuration
- Patching operating systems and applications
- Enabling secure shell access without SSH
- Storing application parameters/secrets
- Running commands across multiple instances
- Auditing compliance and configuration drift
When NOT to Use
Avoid SSM for:
- Stateless container deployments (use ECS instead)
- Development-only environments (SSH acceptable)
Purpose and Use Cases
Primary Purpose: Provide unified management and secure access to EC2 instances and on-premises servers without SSH keys or bastion hosts.
Common Use Cases:
- Secure Shell Access — Session Manager for secure remote access
- Patch Management — Automated OS and application patching
- Configuration Management — Parameter Store for app config
- Compliance — Track configuration state and drift
- Remote Commands — Run scripts across instance fleet
- Inventory — Track software and configurations