

# COST03-BP01 設定詳細資訊來源
<a name="cost_monitor_usage_detailed_source"></a>

 設定 AWS 成本和用量報告，以及 Cost Explorer 每小時精細度，以提供詳細的成本和用量資訊。設定您的工作負載，使其具有每個交付業務成果的日誌項目。 

 **若未建立此最佳實務，暴露的風險等級：** 高 

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

在 AWS Cost Explorer 中啟用每小時精細程度，並建立 [AWS Cost and Usage Report (CUR)](https://aws.amazon.com/aws-cost-management/aws-cost-and-usage-reporting/)。這些資料來源提供整個組織最準確的成本和用量的檢視。CUR 為所有收費的 AWS 服務提供每日或每小時用量精細程度、費率、成本和用量屬性。CUR 中包含所有可能的維度，包括：標記、位置、資源屬性和帳戶 ID。

使用以下自訂項目設定您的 CUR：
+ 包含資源 ID
+ 自動重新整理 CUR
+ 每小時精細度
+ **版本控制：** 覆寫現有的報告
+ **資料整合：** Amazon Athena (Parquet 格式和壓縮)

使用 [AWS Glue](https://aws.amazon.com/glue/) 準備資料用於分析，並使用 [Amazon Athena](https://aws.amazon.com/athena/) 執行資料分析，使用 SQL 查詢資料。您也可以使用 [Amazon Quick](https://aws.amazon.com/quicksight/) 建立自訂且複雜的視覺化，並將它們分發到整個組織。

**實作步驟**
+ ** 設定成本和用量報告： **使用帳單主控台，設定至少一個成本和用量報告。用含所有識別符與資源 ID 的每小時精細度設定報告。您也可以使用不同的精細度建立其他報告，以提供較高層級的摘要資訊。
+ ** 在 Cost Explorer 中設定每小時精細度： **使用帳單主控台，啟用每小時和資源層級資料。
**注意**  
啟用此功能會產生相關費用。如需詳細資訊，請參閱定價。
+  **設定應用程式記錄：** 確認您的應用程式會記錄其交付的每個業務成果，以便追蹤和衡量相應成果。確保此資料的精細度至少為每小時，以便與成本和用量資料相符。如需有關 Web 應用程式後端的建議，請參閱 [Well-Architected 卓越營運支柱，](https://docs.aws.amazon.com/wellarchitected/latest/operational-excellence-pillar/welcome.html) 以取得有關記錄和監控的詳細資訊。

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

 **相關文件：** 
+  [AWS 帳戶設定](https://wellarchitectedlabs.com/Cost/Cost_Fundamentals/100_1_AWS_Account_Setup/README.html) 
+  [AWS Cost and Usage Report (CUR)](https://aws.amazon.com/aws-cost-management/aws-cost-and-usage-reporting/) 
+  [AWS Glue](https://aws.amazon.com/glue/) 
+  [Amazon Quick](https://aws.amazon.com/quicksight/) 
+  [AWS 成本管理定價](https://aws.amazon.com/aws-cost-management/pricing/) 
+  [標記 AWS 資源](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) 
+  [使用 AWS 預算分析成本](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.html) 
+  [使用 Cost Explorer 分析成本](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-explorer-what-is.html) 
+  [管理 AWS 成本和用量報告](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-reports-costusage-managing.html) 
+  [Well-Architected 卓越營運支柱，](https://docs.aws.amazon.com/wellarchitected/latest/operational-excellence-pillar/welcome.html) 

 **相關範例：** 
+  [AWS 帳戶設定](https://wellarchitectedlabs.com/Cost/Cost_Fundamentals/100_1_AWS_Account_Setup/README.html) 