

# COST04-BP01 追蹤其生命週期的資源
<a name="cost_decomissioning_resources_track"></a>

 定義並實作一種方法，在資源的生命週期內追蹤資源及其與系統的關聯。您可以使用標記來識別資源的工作負載或功能。

 **未建立此最佳實務時的曝險等級：**高 

## 實作指引
<a name="implementation-guidance"></a>

停用不再需要的工作負載資源。常見的範例是用於測試的資源：測試完成後，便可移除資源。使用標籤來追蹤資源 (並針對這些標籤執行報告) 可協助您識別要停用的資產 (不會再使用這些資產，或是其授權將到期時)。使用標籤是追蹤資源的有效方法，方法是使用資源的功能標記資源，或標記停用日期。然後，即可對這些標籤執行報告。功能標記的範例值可以是 `feature-X testing`，可識別資源在工作負載生命週期的用途。另一個範例是`TTL`針對 資源使用 `LifeSpan`或 ，例如 to-be-deleted標籤金鑰名稱和值，以定義停用的時段或特定時間。

**實作步驟**
+ **實作標記結構描述：**實作識別資源所屬工作負載的標記結構描述，確保工作負載內的所有資源都已相應地加上標籤。標記可協助您依用途、團隊、環境或其他與您業務相關的準則，來將資源分類。有關標記使用案例、策略和技巧的更多詳細資訊，請參閱 [AWS 標記最佳實務](https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html)。
+ **實作工作負載輸送量或輸出監控：**實作工作負載輸送量監控或警示，在輸入請求或輸出完成時啟動。將其設定為在工作負載請求或輸出降至零時提供通知，指示不再使用工作負載資源。如果工作負載在正常條件下定期下降到零，則併入時間因素。如需有關未使用或未充分利用資源的詳細資訊，請參閱 [AWS Trusted Advisor 成本最佳化檢查](https://docs.aws.amazon.com/awssupport/latest/user/cost-optimization-checks.html)。
+  **群組 AWS 資源：**建立 AWS 資源的群組。您可以使用 [AWS Resource Groups](https://docs.aws.amazon.com/ARG/latest/userguide/resource-groups.html) 來組織和管理位於相同 中的 AWS 資源 AWS 區域。可以針對大多數的資源新增標籤，以便識別和排序組織內的資源。使用[標籤編輯器](https://docs.aws.amazon.com/ARG/latest/userguide/tag-editor.html)將標籤大量新增至支援的資源。考慮使用 [AWS Service Catalog](https://docs.aws.amazon.com/servicecatalog/index.html) 來建立、管理並向最終使用者分發批准的產品組合，並管理產品生命週期。

## 資源
<a name="resources"></a>

 **相關文件：**
+  [AWS Auto Scaling](https://aws.amazon.com/autoscaling/) 
+  [AWS Trusted Advisor](https://aws.amazon.com/premiumsupport/trustedadvisor/) 
+  [AWS Trusted Advisor 成本最佳化檢查](https://docs.aws.amazon.com/awssupport/latest/user/cost-optimization-checks.html) 
+  [標記 AWS 資源](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) 
+  [發佈自訂指標](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html) 

 **相關影片：**
+  [如何使用 最佳化成本 AWS Trusted Advisor](https://youtu.be/zcQPufNFhgg) 

 **相關範例：**
+  [組織 AWS 資源](https://aws.amazon.com/premiumsupport/knowledge-center/resource-groups/) 
+  [使用 最佳化成本 AWS Trusted Advisor](https://aws.amazon.com/premiumsupport/knowledge-center/trusted-advisor-cost-optimization/) 