Automation, maintenance windows and runbooks
Runbooks turn procedures into explicit steps
An Automation runbook is a versioned SSM document describing steps, inputs and actions. It can orchestrate AWS API calls or other supported actions; Run Command is for commands on managed nodes. Separate the initiator from the execution role and restrict both. A valid document may still fail because of permissions, unavailable nodes, invalid inputs or changed state. Pin a reviewed version, check preconditions and record execution identifiers without secrets.
Schedule narrowly and stop on failure
A maintenance window defines when disruptive work may start, its duration, cutoff and registered tasks. The cutoff limits starting new tasks, not necessarily completion of already running work. Specify concurrency and an error threshold for applicable targeted tasks. Already running actions can continue after a threshold is exceeded; it is not an instant rollback. Begin with one canary, concurrency 1, an explicit stop condition and human approval before the next batch. Change Manager stopped accepting new customers November 7, 2025; existing customers may continue. For new designs use a reviewed approval workflow, for example an Automation approval step or an appropriate ITSM integration, rather than assuming Change Manager access.
Design for retry and rollback
Idempotence means repeating an action converges to the same intended state. Check whether a node already runs the desired version rather than reinstalling blindly. Parameter Store provides versioned configuration; SecureString uses KMS and requires appropriate decryption rights. Do not expose values in command output. Advanced parameters and increased throughput may cost money; use Secrets Manager when managed secret rotation is needed. A rollback is a separate tested recovery plan, not an automatic consequence of failure. Restore from a known-good image or backup only with approved scope and verified recovery.
Review a staged plan offline
The fixture below is fictional JSON, not an SSM API request. It permits planning the next batch only if the canary is healthy, a fresh scan confirms compliance, approval and rollback preparation are present, the target list is exactly the approved demo nodes and concurrency is one. Otherwise it returns HOLD. It never runs a patch. Predict the result if the health check fails. For cost estimation, 20 nodes times 5 runbook steps is 100 node-step executions in a simplified model; actual metered steps, duration, retries and ancillary charges depend on the workflow.
{ "canaryHealthy": true, "freshCompliantScan": true, "approved": true, "rollbackReady": true, "targets": [ "demo-web-02", "demo-web-03" ], "concurrency": 1}Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Automation, maintenance windows and runbooks — knowledge check
Reason about fleet management, safe change and governance.
What does a syntactically valid runbook establish?
What may happen after a rate-control error threshold is exceeded?
Which action is idempotent in intent?
What should new customers assume about Change Manager after November 7, 2025?
What does the offline fixture return if canary health is false?