Decommission resources automatically
Framework question: How do you decommission resources?
- Risk if not established
- Low — safe automation opportunities are missed, leaving unnecessary capacity active longer and increasing manual effort, while ungoverned automation could terminate resources incorrectly.
Executive summary
Why this practice matters
Automate scale-in, expiry or decommissioning where workload design and resource criticality make termination safe. Automation should include clear triggers, grace periods, exclusions, testing, monitoring and rapid disable/rollback controls.
Business impact
Assign
Accountable and responsible roles
Responsibilities are held separately from roles, so accountability type and typical roles are stated explicitly.
| Responsibility | Accountability type | Typical roles |
|---|---|---|
Design for safe termination Ensure workload architecture can tolerate automatic scale-in or removal for eligible resources. Typical roles: Architect, Cloud Architect | responsible | ArchitectCloud Architect |
Implement decommission automation Implement triggers, safeguards, tests, observability and rollback/disable controls. Typical roles: DevOps Engineer, Cloud / Platform Engineer, DevOps Engineer, Platform Engineer | responsible | DevOps EngineerCloud / Platform EngineerDevOps Engineer, Platform Engineer |
Approve automation scope Confirm which workload/resource classes are safe and valuable to automate. Typical roles: Service Owner, Service Owner | accountable | Service OwnerService Owner |
Assessment
Assessment and evidence state
States describe how far the practice has moved from intent to something continuously validated.
- 0
Not Assessed
Automatic decommissioning opportunities have not been assessed.
Indicators
- No known inventory of safe automation candidates exists.
- 1
Not Implemented
Decommissioning and scale-in are predominantly manual.
Indicators
- Eligible temporary or elastic resources remain active until human action.
- 2
Partially Implemented
Some automation exists but triggers, safeguards, tests or coverage are inconsistent.
Indicators
- Automation is limited to selected resource classes or environments.
- 3
Implemented
Eligible resources use tested automation with explicit safeguards and operational monitoring.
Indicators
- Protected scope, triggers and rollback controls are documented.
- 4
Continuously Validated
Automation coverage and safety are measured and improved using outcome data.
Indicators
- False positives, exceptions and savings drive control refinement.
Assessment dimensions
Automation coverage
Practice-specificNone · Selected · Eligible estate
Trigger quality
Practice-specificSimple · Guarded · Context-aware
Safety controls
Practice-specificNone · Partial · Tested
Operational feedback
Practice-specificNone · Incident-based · Measured
Standard
What you should be able to demonstrate
Statements a reviewer should be able to confirm from evidence, not from intent.
Assess
Questions to ask
Each question exposes the difference between an intention and an operating practice.
- ownership
Which resource classes can be safely terminated or scaled in automatically, and which are explicitly protected?
Automation scope must be deliberate.
Usually asked by: Architect
- evidence
What trigger, grace period and safety checks prevent temporary low usage from causing incorrect termination?
Safe automation requires more than a threshold.
Usually asked by: DevOps Engineer
- measurement
When was each automated decommission control last tested in non-production or failure conditions?
Untested destructive automation is a latent operational risk.
Usually asked by: Cloud / Platform Engineer
- challenge
What was the most recent false positive, rollback or emergency disable event and what changed afterward?
Operational incidents are strong evidence of control quality.
Usually asked by: Operations Manager
Evidence
Required and expected evidence
Reusable evidence definitions held once in the evidence library and referenced by every practice that relies on them. Each links to what good evidence looks like and to worked examples.
Automated Resource Decommissioning Control Baseline
A controlled definition of automated scale-in, expiry, teardown or decommissioning controls, including trigger conditions, exclusions, safeguards, test evidence and monitoring of automation outcomes.
Defines automated decommission controls, triggers, exclusions, tests and operational monitoring.
Minimum expected content
- Automation/control name
- Resource types and environments in scope
- Trigger metric/event/expiry condition
- Minimum observation or grace period
- Exclusions and protected resources
- Safety/health conditions
- Scale-in or deletion action
- Notification/escalation behavior
- Rollback/disable mechanism
- Non-production test evidence
- Production monitoring and audit trail
- Owner and review cadence
Anti-patterns
- Delete anything with zero CPU for five minutes
- Production and test resources share identical termination rules without justification
- Automation has no owner or audit trail
- Manual exceptions accumulate permanently
- Savings are measured but customer-impact risk is not
Review: Review quarterly and after material incidents, workload architecture changes or provider capability changes.
Resource Decommissioning Procedure & Execution Record
A controlled decommissioning procedure together with execution evidence showing how unused or end-of-life resources are identified, approved, protected, removed and verified without leaving dependent assets, access paths or unnecessary cost behind.
Provides the broader decommissioning safeguards and residual-verification requirements.
Minimum expected content
- Candidate resource/workload identifier and owner
- Reason/trigger for decommissioning
- Usage and dependency validation
- Business-owner confirmation
- Retention/compliance checks
- Backup/restore or recovery decision where required
- Infrastructure-as-code/configuration implications
- Access/DNS/monitoring/security/tooling cleanup steps
- Planned execution date and executor
- Actual completion date and outcome
- Residual resources or exceptions
- Post-decommission cost/usage verification
Anti-patterns
- A ticket is closed when the main instance is stopped but disks, snapshots, IPs, licenses or monitoring remain
- Resource deletion relies on one administrator's memory
- No business owner confirms that the resource is unused
- Backups are retained indefinitely without reason
- Decommissioning approvals exist but completion is not verified
Review: Review the process at least annually and after material decommission failures; review execution records continuously as actions occur.
Diagnosis
Common evidence gaps
Threshold-only automation
A single utilization threshold triggers deletion with no grace or business context.
No protected-resource model
Critical and non-critical resources are treated identically.
Untested destructive paths
Automation is deployed without realistic non-production validation.
Permanent exceptions
Manual exclusions accumulate and never return to review.
Implementation
Implementation guidance
Choose safe automation candidates
Prioritize non-critical, elastic, temporary or explicitly expiring resources.
Define robust triggers
Combine usage, lifecycle state and time/grace conditions rather than relying on one instantaneous metric.
Build safeguards
Protect critical resources, notify owners and provide rapid disable/rollback paths.
Test and observe
Validate destructive behavior in non-production and monitor false positives, failures and realized resource reduction.
Measure
Measurements
- Percentage of eligible resources covered by safe automatic scale-in/decommissioning.
- Value of capacity automatically removed.
- False-positive or rollback rate.
- Percentage of automation controls tested on schedule.
- Number of stale manual exclusions.
Related
Outcomes and practices
Business outcomes
Practices
Use this to
Relevant journeys
Guided routes that already use this practice, with responsibilities, evidence and roles mapped.