Comparison lab
AWS CloudFormation vs AWS Systems Manager
CloudFormation defines and deploys the stack; Systems Manager operates the fleet.
Picture the difference
Infrastructure template → CloudFormation stack; running managed nodes → Systems Manager operations
| Option | What it does | Exam clue | When not to use it |
|---|---|---|---|
| AWS CloudFormation | Declarative infrastructure as code that provisions and manages related resources as stacks. | infrastructure as code, templates, stacks, change sets, dependencies | Use an operations tool for routine guest maintenance; reproducing an environment is different from patching hosts inside it. |
| AWS Systems Manager | Operational management service for fleets of managed nodes and AWS resources. | fleet operations, managed nodes, Patch Manager, Run Command, Session Manager | For versioned infrastructure provisioning, choose infrastructure as code; for a purpose-built rotating database secret, choose a secret manager. |
Decision tree
- Provision and update a set of AWS resources from a declarative stack template AWS CloudFormation
- Patch, access, or run operations on existing managed nodes AWS Systems Manager
If none of these clues fit, check the exact requirement before choosing.