AWSCloud Visual Academy

Comparison lab

AWS CloudFormation vs AWS Systems Manager

CloudFormation defines and deploys the stack; Systems Manager operates the fleet.

All comparisons

Picture the difference

Infrastructure template → CloudFormation stack; running managed nodes → Systems Manager operations

OptionWhat it doesExam clueWhen not to use it
AWS CloudFormationDeclarative infrastructure as code that provisions and manages related resources as stacks.infrastructure as code, templates, stacks, change sets, dependenciesUse an operations tool for routine guest maintenance; reproducing an environment is different from patching hosts inside it.
AWS Systems ManagerOperational management service for fleets of managed nodes and AWS resources.fleet operations, managed nodes, Patch Manager, Run Command, Session ManagerFor versioned infrastructure provisioning, choose infrastructure as code; for a purpose-built rotating database secret, choose a secret manager.

Decision tree

  1. Provision and update a set of AWS resources from a declarative stack template AWS CloudFormation
  2. Patch, access, or run operations on existing managed nodes AWS Systems Manager

If none of these clues fit, check the exact requirement before choosing.