

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 AWS Cost Explorer 建立 Amazon EMR 叢集的詳細成本和用量報告
<a name="create-detailed-cost-and-usage-reports-for-amazon-emr-clusters-by-using-aws-cost-explorer"></a>

*Parijat Bhide 和 Aromal Raj Jayarajan，Amazon Web Services*

## 總結
<a name="create-detailed-cost-and-usage-reports-for-amazon-emr-clusters-by-using-aws-cost-explorer-summary"></a>

此模式說明如何透過設定[使用者定義的成本分配標籤來追蹤 Amazon EMR 叢集的使用成本](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/custom-tags.html)。您可以使用這些標籤，在 AWS Cost Explorer 中為多個維度的叢集建立詳細的成本和用量報告。例如，您可以在團隊、專案或成本中心層級追蹤用量成本。

## 先決條件和限制
<a name="create-detailed-cost-and-usage-reports-for-amazon-emr-clusters-by-using-aws-cost-explorer-prereqs"></a>

**先決條件**
+ 作用中的 AWS 帳戶
+ 一或多個已啟用使用者定義標籤[的 EMR 叢集](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-gs.html) 

## Architecture
<a name="create-detailed-cost-and-usage-reports-for-amazon-emr-clusters-by-using-aws-cost-explorer-architecture"></a>

**目標技術堆疊**
+ Amazon EMR
+ AWS Cost Explorer

**目標架構**

下圖顯示如何套用標籤來追蹤特定 Amazon EMR 叢集的使用成本。

![\[使用 Amazon EMR 叢集的成本分配標籤。\]](http://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/patterns/images/pattern-img/3e470077-e3b1-43cf-8cb9-0895fe39e664/images/fb6b78cb-47bb-4ba1-848a-98dba02bdbb2.png)


該圖顯示以下工作流程：

1. 資料工程師或 AWS 管理員會為 Amazon EMR 叢集建立使用者定義的成本分配標籤。

1. AWS 管理員會啟用標籤。

1. 這些標籤會向 AWS Cost Explorer 報告中繼資料。

## 工具
<a name="create-detailed-cost-and-usage-reports-for-amazon-emr-clusters-by-using-aws-cost-explorer-tools"></a>

**工具**
+ [Amazon EMR](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-what-is-emr.html) 是受管叢集平台，可簡化在 AWS 上執行大數據架構，以處理和分析大量資料。
+ [AWS Cost Explorer](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/ce-what-is.html) 可協助您檢視和分析 AWS 成本和用量。

## 史詩
<a name="create-detailed-cost-and-usage-reports-for-amazon-emr-clusters-by-using-aws-cost-explorer-epics"></a>

### 為您的 Amazon EMR 叢集建立和啟用標籤
<a name="create-and-activate-tags-for-your-amazon-emr-clusters"></a>


| 任務 | Description | 所需的技能 | 
| --- | --- | --- | 
| 為您的 Amazon EMR 叢集建立使用者定義的成本分配標籤。 | **將標籤新增至現有的 Amazon EMR 叢集**請遵循 *Amazon EMR 管理指南*中[將標籤新增至現有叢集](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-tags-add.html)中的指示。**將標籤新增至新的 Amazon EMR 叢集**請遵循《*Amazon EMR 管理指南*》中[將標籤新增至新叢集](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-tags-add-new.html)中的指示。如需如何設定 Amazon EMR 叢集的詳細資訊，請參閱《*Amazon EMR 管理指南*》中的[規劃和設定叢集](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan.html)。 | 資料工程師 | 
| 啟用使用者定義的成本分配標籤。 | 請遵循 *AWS Billing 使用者指南*中[啟用使用者定義的成本分配標籤](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/activating-tags.html)中的指示。 | AWS 管理員 | 

### 為您的 Amazon EMR 叢集建立成本和用量報告
<a name="create-cost-and-usage-reports-for-your-amazon-emr-clusters"></a>


| 任務 | Description | 所需的技能 | 
| --- | --- | --- | 
| 使用 AWS Cost Explorer 中的標籤篩選條件，為您的 Amazon EMR 叢集建立成本和用量報告。 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/patterns/create-detailed-cost-and-usage-reports-for-amazon-emr-clusters-by-using-aws-cost-explorer.html)如需詳細資訊，請參閱《*AWS Cost Management 使用者指南*》中的[使用 Cost Explorer 探索您的資料](https://docs.aws.amazon.com/cost-management/latest/userguide/ce-exploring-data.html)。 | 一般 AWS、AWS 管理員 | 