Service cheat sheets
Operations and deployment
CloudFormation, Systems Manager, Config, CloudWatch and CodeDeploy with the limits and signals the exam asks about.
CloudFormation
| Feature | Use it for |
|---|---|
| Change sets | Preview what an update will change before running it |
| StackSets | One template to many accounts and Regions |
| Drift detection | Find resources changed outside the stack |
| DeletionPolicy | Retain or Snapshot to keep data when a stack is deleted |
| Nested stacks | Reuse a template and get around size limits |
| Custom resources | Run code, often Lambda, during create, update or delete |
cfn-init and cfn-signal | Configure an instance and tell the stack it is ready |
| Limits | 500 resources and 200 parameters per template. A direct template body up to 51,200 bytes, up to 1 MB from S3 |
Systems Manager
| Capability | Use it for |
|---|---|
| Run Command | One-off commands on many instances |
| State Manager | Keep instances in a desired configuration |
| Patch Manager | Baselines and maintenance windows |
| Automation | Runbooks, including cross-account and approvals |
| Session Manager | Shell access with no inbound ports or SSH keys |
| Parameter Store | Configuration values, standard up to 4 KB and advanced up to 8 KB |
| Inventory | Software and configuration collection |
Monitoring and deployment
| Service | One-line fact |
|---|---|
| CloudWatch metrics | Standard resolution is 1 minute, high resolution is 1 second. Basic EC2 monitoring is 5 minutes |
| Metric retention | 1-minute data for 15 days, 5-minute for 63 days, 1-hour for 455 days |
| Logs subscription filter | Stream log events to Kinesis, Firehose or Lambda, with at most two per log group |
| AWS Config | Records configuration history and checks rules, remediation runs SSM Automation |
| CodeDeploy EC2 | In-place or blue/green |
| CodeDeploy Lambda | Canary, linear or all-at-once traffic shifting |
| CodeDeploy ECS | Blue/green with listener shifting |
No SSH keys, no bastion
"Access instances without opening port 22 or managing keys" is Session Manager. Add logging to S3 or CloudWatch Logs for audit.
Related
- Deployment strategies: choosing a strategy.
- Configuration and patching: Systems Manager in depth.
- Observability: metrics, logs and traces.
- AWS CloudFormation: templates, StackSets and rollback.