

# COST03-BP04 設定帳單和成本管理工具
<a name="cost_monitor_usage_config_tools"></a>

 根據組織政策設定 AWS Cost Explorer 和 AWS Budgets。 

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

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

若要修改用量和調整成本，組織中的每個人員都必須能夠存取其成本和用量資訊。建議所有工作負載和團隊在使用雲端時設定下列工具：
+ **報告：** 彙總所有成本和用量資訊
+ **通知：** 當成本或用量超出定義的限制時，提供通知。
+ **目前狀態： **設定儀表板，顯示目前的成本和用量。儀表板應該在工作環境中顯眼的位置提供 (類似營運儀表板)。
+ **趨勢： **提供以所需的精細度顯示所需期間內成本與用量變化的功能。
+ **預測： **提供顯示未來預估成本的功能。
+ **追蹤： **顯示相對於設定的總目標或具體目標目前成本和用量的狀況。
+ **分析： **讓團隊成員能夠以所有可能的維度執行每小時精細度的自訂和深度分析。

您可以使用 AWS 原生工具，例如 ( [AWS Cost Explorer](https://aws.amazon.com/aws-cost-management/aws-cost-explorer/)、 [AWS Budgets](https://aws.amazon.com/aws-cost-management/aws-budgets/)和 [Amazon Athena)](https://docs.aws.amazon.com/athena/?id=docs_gateway) 搭配 [Quick](https://docs.aws.amazon.com/quicksight/?id=docs_gateway) 實現此功能。您也可以使用第三方工具，不過，您必須確保此工具的成本能夠為您的組織帶來相應的價值。

**實作步驟**
+ ** 建立成本優化群組： **設定您的帳戶，並建立可存取所需成本和用量報告的群組。此群組必須包含擁有或管理應用程式之所有團隊的代表。這可證明每個團隊都能存取他們的成本和用量資訊。
+ ** 設定 AWS Budgets：** 針對您的工作負載在所有帳戶上設定 AWS Budgets。使用標籤來設定整體帳戶支出的預算，以及工作負載的預算。
+ ** 設定 AWS Cost Explorer： **為您的工作負載和帳戶設定 AWS Cost Explorer。為追蹤整體支出的工作負載建立儀表板，並建立工作負載的關鍵用量指標。
+ ** 設定進階工具： **或者，您可以為組織建立自訂工具，以提供額外的詳細資訊和精細度。您可以實作進階分析功能，方法為使用 [Amazon Athena](https://docs.aws.amazon.com/athena/?id=docs_gateway)，以及實作儀表板，方法為使用 [Quick](https://docs.aws.amazon.com/quicksight/?id=docs_gateway)。

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

 **相關文件：** 
+  [標記 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 實驗室：AWS 帳戶設定](https://wellarchitectedlabs.com/Cost/Cost_Fundamentals/100_1_AWS_Account_Setup/README.html/) 
+  [Well-Architected 實驗室：帳單視覺化](https://wellarchitectedlabs.com/Cost/Cost_Fundamentals/100_5_Cost_Visualization/README.html) 
+  [Well-Architected 實驗室：成本與管控用量](https://wellarchitectedlabs.com/Cost/Cost_Fundamentals/100_2_Cost_and_Usage_Governance/README.html) 
+  [Well-Architected 實驗室：成本與用量分析](https://wellarchitectedlabs.com/Cost/Cost_Fundamentals/200_4_Cost_and_Usage_Analysis/README.html) 
+  [Well-Architected 實驗室：成本與用量視覺化](https://wellarchitectedlabs.com/Cost/Cost_Fundamentals/200_5_Cost_Visualization/README.html) 