Skip to main content
Welcome. This lesson covers configuration management in AWS — Domain 2 material that explains how to evolve infrastructure after provisioning. Topics include tuning, patching, installing software, inspecting and auditing state, upgrading, and remediating drift. Think of this as the post-production work on a product that’s already rolling off the assembly line: if a car launched without a headlight, configuration management is how we ensure every car of that model gets the headlight and stays in the expected state. A modern factory automates repetitive, consistent tasks. In the cloud, services let you define a foundation (the blueprint) and manage running systems at scale.
An infographic titled "AWS Parallel" that maps a car factory production line (building the car body, installing infotainment, setting tire pressure, performing safety checks, fixing post-production issues) to equivalent cloud tasks. The AWS Cloud row shows tools and steps like CloudFormation, Systems Manager, environment configuration, AWS Config compliance checks, and auto-remediation.
Overview — How these services map to lifecycle stages
  • CloudFormation: define and provision foundational infrastructure (the car body).
  • Systems Manager: install packages, run commands, patch, and perform ongoing configuration on running instances (install infotainment, set tire pressure, apply post-production fixes).
  • AWS Config: audit, detect drift, and drive automated remediation when rules are violated.
Systems Manager exposes executable documents and automation workflows that you can invoke against individual systems or fleets to perform remediation and routine operations. Key Systems Manager capabilities include Maintenance Windows, Patch Manager, Incident Manager, Change Manager (Change Calendar), State Manager, Run Command, Parameter Store, and Session Manager. These enable automated patching, desired-state enforcement, command execution across fleets, secure parameter storage, and secure, auditable shell access without SSH. This pattern focuses on mutable infrastructure: changing running systems rather than replacing instances with pre-baked images. When you operate mutable infrastructure you must:
  • Maintain consistency across systems
  • Scale configuration changes efficiently
  • Automate repetitive tasks
  • Detect and fix configuration drift (for example, manual changes)
  • Enforce audit, security, and compliance requirements
Systems Manager is the primary AWS service for configuration management of running systems; use CloudFormation for provisioning and Systems Manager to evolve running infrastructure.
Systems Manager requires the Systems Manager Agent on managed instances (EC2, on-prem servers, or other cloud VMs). If the agent can reach Systems Manager endpoints, you can manage that infrastructure.
A diagram titled "Systems Manager" showing icons for features like Inventory, Patch Manager, Parameter Store, OpsCenter, State Manager, Run Command, Incident Manager, Maintenance Windows, Change Calendar, Application Manager, Session Manager, and Change Manager. Arrows connect the Systems Manager block to targets labeled AWS, other cloud providers, data centers, and IoT fleets.
Systems Manager — capabilities and when to use them Example: run an ad-hoc shell script across instances using Run Command (CLI):
Note: check the AWS Systems Manager documentation for the precise CLI/JSON syntax and IAM permissions. Additional Systems Manager subservices (Maintenance Windows, Change Manager, Incident Manager, OpsCenter) are valuable at scale. AWS updates these features frequently — review the service docs regularly. Historical note: OpsWorks
A presentation slide titled "AWS OpsWorks – Overview" with the OpsWorks icon on the left. A dashed box lists features like configuration management based on Chef and Puppet, automated server configuration/deployment, lifecycle hooks, and OS‑level package/service/application management.
  • OpsWorks historically provided Chef and Puppet-based configuration management and lifecycle hooks for server automation.
  • This is included for historical completeness. OpsWorks is not a primary focus of modern AWS architectures or the current certification emphasis.
OpsWorks is a legacy configuration-management option. Prioritize Systems Manager and CloudFormation for modern AWS configuration management and exam preparation.
CloudFormation — provisioning and bootstrap configuration
  • CloudFormation is the canonical Infrastructure as Code (IaC) tool for provisioning AWS resources using templates stored in version control or S3.
  • You can inject configuration at bootstrapping time (for example, EC2 user data that runs scripts or invokes configuration management tools). CloudFormation can also call Lambda-backed custom resources or integrate with configuration tools during creation.
  • CloudFormation support for new AWS features can lag initial service launches; however, it remains the standard IaC approach for AWS resource provisioning.
Tip: Use CloudFormation for provisioning and initial bootstrapping. For ongoing configuration (patching, enforcement, remote commands) prefer Systems Manager. AWS Config — continuous monitoring, auditing, and remediation
  • AWS Config records and evaluates resource configurations against managed or custom rules.
  • It detects drift, logs historical configuration changes, and builds a searchable inventory of resources.
  • While Config doesn’t directly mutate resources, it can trigger automated remediation workflows — for example, invoking a Systems Manager Automation document to fix an out-of-compliance resource (such as a security group that’s overly permissive).
  • Use AWS Config for governance, compliance reporting, and forensic audits.
A presentation slide about AWS Config with its logo and cloud icon on the left. On the right is a vertical list of features—inventory tracking, continuous configuration monitoring, automatic notifications, and compliance enforcement—each shown with a colorful icon.
Best practices — configuration management in AWS Additional guidance
  • Use Parameter Store or Secrets Manager for secure configuration values; prefer kms-encrypted Parameter Store entries for sensitive data if not using Secrets Manager.
  • Automate patching with Patch Manager and tie maintenance activities into Maintenance Windows and Change Manager when operating at scale.
  • Integrate AWS Config with AWS Security Hub or your SIEM for centralized compliance reporting.
References and further reading Demos and hands-on exercises for these services are recommended to reinforce the concepts and exam readiness.

Watch Video