Search for Well Architected Advice
< All Topics
Print

Decommission resources automatically

Implementing an automatic decommissioning process is crucial for reducing costs and minimizing waste. By designing workloads that can gracefully handle resource termination, organizations can free up unused or underutilized resources, optimized their spend, and ultimately keep the cloud environment cost-efficient.

Best Practices

  • Automated Resource Management: Utilize AWS Lambda and CloudWatch to monitor resource utilization continuously. Set up alerts to automatically decommission non-critical and low-utilization resources to streamline costs and reduce manual oversight.

Supporting Questions

  • Is there an automated process to identify and decommission underutilized resources?

Roles and Responsibilities

  • Cloud Administrator: Responsible for managing cloud resources, including continuously monitoring usage and implementing automation scripts for resource decommissioning.
  • DevOps Engineer: Ensures application workloads are designed for resilience and can dynamically manage resource lifecycle without downtime.

Artifacts

  • Resource Inventory Report: A report that lists all cloud resources along with their utilization metrics to inform decommissioning decisions.
  • Automation Scripts: Scripts that automatically terminate or shut down specified resources based on predefined utilization thresholds.

Cloud Services

AWS

  • AWS Lambda: Executes code in response to triggers, allowing for automatic decommissioning of resources based on usage metrics.
  • Amazon CloudWatch: Monitors resource utilization, and can trigger alerts or actions to shut down or decommission resources automatically based on set policies.

Question: How do you decommission resources?
Pillar: Cost Optimization (Code: COST)

Table of Contents