When would you use AWS Systems Manager instead of, or together with, Ansible?
IntermediateProductionArchitecture Decisions and Tool Comparisons
Answer
SSM is attractive when instances have no inbound SSH, or when the AWS-native team owns patching.
- Patch Manager / Maintenance Windows: managed OS patching with compliance reports.
- Run Command / State Manager: run commands or desired-state documents across tagged instances.
- Ansible inside SSM: the
AWS-ApplyAnsiblePlaybooksdocument runs playbooks from S3 or GitHub on the instance itself. - Ansible over SSM: the
amazon.aws.aws_ssmconnection plugin lets normal playbooks reach instances without SSH.
Our usual split: SSM for access and AWS-native patch compliance, Ansible for application config and orchestration. Avoid having both tools manage the same files, or they will fight over them.
More on Architecture Decisions and Tool Comparisons
Ansible or Terraform: where do you draw the line?BeginnerHow does Ansible compare with Puppet, Chef and Salt?IntermediateWhy use Ansible instead of shell scripts?BeginnerWhere does Ansible fit once you run Kubernetes?Intermediatecloud-init or Ansible for first boot configuration?IntermediateShould Ansible do application deployments or should a CD tool?Advanced