

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

# 跨兩個 的 ID 映射工作流程 AWS 帳戶
<a name="creating-id-mapping-workflow-two-accounts"></a>

*跨兩個的 ID 映射工作流程 AWS 帳戶*可讓您在跨兩個資料集之間執行 ID 映射 AWS 帳戶。這通常是在您自己的 AWS 帳戶 和另一個 之間完成 AWS 帳戶。

例如，發佈者可以使用自己的目標 ID 命名空間 （在自己的 中 AWS 帳戶) 和廣告商的來源 ID 命名空間 （在另一個 中） 來建立 ID 映射工作流程 AWS 帳戶。

建立跨兩個 ID 映射工作流程之前 AWS 帳戶，您必須先完成[先決條件](create-idmw-two-accounts-prerequisite.md)。

建立 ID 映射工作流程之後，您可以檢視輸出 (ID 映射表） 並將其用於分析。

下列主題會引導您完成一組步驟，以跨兩個步驟建立 ID 映射工作流程 AWS 帳戶：

**Topics**
+ [

# 先決條件
](create-idmw-two-accounts-prerequisite.md)
+ [

# 建立 ID 映射工作流程 （規則型）
](create-id-mapping-workflow-procedure.md)
+ [

# 建立 ID 映射工作流程 （提供者服務）
](create-id-mapping-workflow-provider-services.md)

# 先決條件
<a name="create-idmw-two-accounts-prerequisite"></a>

在建立跨兩個的 ID 映射工作流程之前 AWS 帳戶，您必須先執行下列動作：
+ 完成 [設定 AWS Entity Resolution](setting-up.md) 中的任務。
+ [建立 ID 命名空間來源](create-id-namespace-source.md)。
+ [建立 ID 命名空間目標](create-id-namespace-target.md)。
+ 如果您使用來自另一個 的 ID 命名空間來源，請取得 ID 命名空間 ARN AWS 帳戶。
+ （僅限**提供者服務**) 在兩個 之間建立 ID 映射工作流程 AWS 帳戶 需要 LiveRamp 存取 S3 儲存貯體和 AWS Key Management Service (AWS KMS) 客戶受管金鑰的許可。

   AWS 帳戶 使用 LiveRamp 在兩個 之間建立 ID 映射工作流程之前，請新增下列許可政策，允許 LiveRamp 存取 S3 儲存貯體和客戶受管金鑰。

------
#### [ JSON ]

****  

  ```
  {
      "Version":"2012-10-17",		 	 	 
      "Statement": [{
          "Effect": "Allow",
          "Principal": {
              "AWS": "arn:aws:iam::715724997226:root" 
          },
          "Action": [
              "kms:Decrypt"
          ],
          "Resource": "arn:aws:kms:us-east-1:111122223333:key/key-id",
          "Condition": {
              "StringEquals": {
              "kms:ViaService": "s3.us-east-1.amazonaws.com"
              }
          }
      }]
  }
  ```

------

  在上述許可政策中，將每個 *<user input placeholder>* 取代為您自己的資訊。    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/create-idmw-two-accounts-prerequisite.html)

# 建立 ID 映射工作流程 （規則型）
<a name="create-id-mapping-workflow-procedure"></a>

完成[先決條件](create-idmw-two-accounts-prerequisite.md)之後，您可以建立一或多個 ID 映射工作流程，以使用相符的規則將第一方資料從來源轉譯到目標。

**跨兩個建立規則型 ID 映射工作流程 AWS 帳戶**

1. 登入 AWS 管理主控台 ，並在 https：//[https://console.aws.amazon.com/entityresolution/](https://console.aws.amazon.com/entityresolution/) 開啟 AWS Entity Resolution 主控台。

1. 在左側導覽窗格中的**工作流程下**，選擇 **ID 映射**。

1. 在 **ID 映射工作流程**頁面上的右上角，選擇**建立 ID 映射工作流程**。

1. 針對**步驟 1：指定 ID 映射工作流程詳細資訊**，執行下列動作。

   1. 輸入 **ID 映射工作流程名稱**和選用**的描述**。

      ![\[The Name and Description fields on the Specify ID mapping workflow details page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/specify-ID-mapping-details-name.png)

   1. 針對 **ID 映射方法**，選擇**規則型**。

   1. （選用） 若要在工作流程中僅處理新的、更新或刪除的記錄，請選取**啟用增量處理**。

      ![\[The ID mapping section of the Specify ID mapping workflow page with the Enable incremental process checkbox selected.\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/id-mapping-method-enable-inc-proc.png)

      AWS Entity Resolution 只會處理來源或目標 ID 命名空間中的新記錄、更新記錄或刪除記錄，而不是重新建立整個 ID 映射表。

      當您選擇增量處理且資料表具有 DELETE 資料欄時， 會根據 DELETE 資料欄值以不同的方式 AWS Entity Resolution 處理記錄。
      + DELETE `true` 欄中標記為 的記錄會從 ID 映射資料表中移除。
      + `false` DELETE 欄中標記為 的記錄會擷取至 Amazon S3。

      如果您未選取此選項， AWS Entity Resolution 會在 ID 映射表上執行預設批次處理 ID 映射工作流程。

   1. （選用） 若要為資源啟用**標籤**，請選擇**新增標籤**，然後輸入**金鑰**和**值**對。

   1. 選擇**下一步**。

1. 針對**步驟 2：指定來源和目標**，執行下列動作。

   1. 開啟**進階選項**。

   1. 針對**來源**，選擇**相符工作流程**，然後從下拉式清單中選取現有的**相符工作流程**。

   1. 針對**目標**，選擇**相符工作流程**，然後從下拉式清單中選取現有的**相符工作流程**。

   1. 針對**規則參數**，選擇**來源**或**目標**是否可以在 ID 映射工作流程中提供規則，以指定**規則控制項**。

      規則控制必須在來源與目標之間相容，才能用於 ID 映射工作流程。例如，如果來源 ID 命名空間將規則限制為目標，但目標 ID 命名空間將規則限制為來源，則會導致錯誤。

   1. 針對**比較和比對參數**，請執行下列動作。

      1. 根據您的目標選擇選項來指定**比較類型**。    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/create-id-mapping-workflow-procedure.html)

      1. 根據您的目標選擇選項來指定**記錄比對類型**。    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/create-id-mapping-workflow-procedure.html)
**注意**  
您必須指定來源和目標 ID 命名空間的相容限制。

   1. 若要指定**服務存取**許可，請選擇 選項並採取建議的動作。

      ![\[The Service access options on the Specify source and target page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/specify-source-target-service-access.PNG)    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/create-id-mapping-workflow-procedure.html)

1. 選擇**下一步**。

1. 針對**步驟 3：指定資料輸出位置 – *選用***，請執行下列動作。

   1. 對於**資料輸出目的地**，請執行下列動作。

      1. 選擇資料輸出的 **Amazon S3 位置**。

      1. 對於**加密**，如果您選擇**自訂加密設定**，請輸入**AWS KMS 金鑰** ARN 或選擇**建立 AWS KMS 金鑰**。

   1. 檢視 **LiveRamp 產生的輸出**。

   1. 選擇**下一步**。

1. 針對**步驟 4：檢閱和建立**，執行下列動作。

   1. 檢閱您針對先前步驟所做的選擇，並視需要加以編輯。

   1. 選擇**建立**。

      訊息隨即出現，指出 ID 映射工作流程已建立。

建立 ID 映射工作流程之後，您就可以[執行 ID 映射工作流程](run-id-mapping-workflow.md)。

# 建立 ID 映射工作流程 （提供者服務）
<a name="create-id-mapping-workflow-provider-services"></a>

完成[先決條件](create-idmw-two-accounts-prerequisite.md)後，您可以使用 LiveRamp 提供者服務建立一或多個 ID 映射工作流程。LiveRamp 會使用維護或衍生的 RampIDs將一組來源 RampIDs轉譯為另一組。

**使用提供者服務建立 ID 映射工作流程**

1. 登入 AWS 管理主控台 並在 https：//[https://console.aws.amazon.com/entityresolution/](https://console.aws.amazon.com/entityresolution/) 開啟 AWS Entity Resolution 主控台。

1. 在左側導覽窗格中的**工作流程下**，選擇 **ID 映射**。

1. 在 **ID 映射工作流程**頁面上的右上角，選擇**建立 ID 映射工作流程**。

1. 對於**步驟 1：指定 ID 映射工作流程詳細資訊**，請執行下列動作。

   1. 輸入 **ID 映射工作流程名稱**和選用**的描述**。

      ![\[The Name and Description fields on the Specify ID mapping workflow details page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/specify-ID-mapping-details-name.png)

   1. 針對 **ID 映射方法**，選擇**提供者服務**。

      AWS Entity Resolution 目前提供 LiveRamp 提供者服務做為 ID 映射方法。如果您有 LiveRamp 的訂閱，則狀態會顯示為**已訂閱**。如需如何訂閱 LiveRamp 的詳細資訊，請參閱 [步驟 1：在 上訂閱提供者服務 AWS Data Exchange](prepare-third-party-input-data.md#subscribe-provider-service)。

      ![\[The Subscribed status for the LiveRamp ID mapping method on the Specify ID mapping workflow page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/id-mapping-method.PNG)
**注意**  
確保您的資料輸入檔案格式符合提供者服務的準則。如需 LiveRamp 輸入檔案格式準則的詳細資訊，請參閱 LiveRamp 文件網站上的[透過 ADX 執行轉譯](https://docs.liveramp.com/identity/en/perform-transcoding-through-adx.html)。

   1. 針對 **LiveRamp 組態**，輸入 LiveRamp 提供的下列值：
      + **用戶端 ID 管理員 ARN** 
      + **用戶端秘密管理員 ARN**

      ![\[The LiveRamp configuration fields on the Specify ID mapping workflow page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/liveramp-configuration.PNG)

   1. （選用） 若要為資源啟用**標籤**，請選擇**新增標籤**，然後輸入**金鑰**和**值**對。

   1. 選擇**下一步**。

1. 針對**步驟 2：指定來源和目標**，執行下列動作。

   1. 開啟**進階選項**。

   1. 針對**來源**，選擇 **ID 命名空間**。

      ![\[The Source fields on the Specify source and target page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/specify-source-id-namespace.PNG)

   1. 針對 ID 命名空間，識別 ID 命名空間所在的位置，然後採取建議的動作。    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/create-id-mapping-workflow-provider-services.html)

   1. 針對**目標**，選擇 **ID 命名空間**。

      ![\[The Target field on the Specify source and target page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/specify-target-id-namespace.PNG)

   1. 若要指定**服務存取**許可，請選擇 選項並採取建議的動作。

      ![\[The Service access options on the Specify source and target page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/specify-source-target-service-access.PNG)    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/create-id-mapping-workflow-provider-services.html)

1. 選擇**下一步**。

1. 針對**步驟 3：指定資料輸出位置 – *選用***，請執行下列動作。

   1. 對於**資料輸出目的地**，請執行下列動作。

      1. 選擇資料輸出的 **Amazon S3 位置**。

      1. 對於**加密**，如果您選擇**自訂加密設定**，請輸入**AWS KMS 金鑰** ARN 或選擇**建立 AWS KMS 金鑰**。

   1. 檢視 **LiveRamp 產生的輸出**。

   1. 選擇**下一步**。

      ![\[The Data output destination fields on the Specify data output location page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/specify-data-ouput-IDM.PNG)

1. 針對**步驟 4：檢閱和建立**，執行下列動作。

   1. 檢閱您針對先前步驟所做的選擇，並視需要進行編輯。

   1. 選擇**建立**。

      訊息隨即出現，指出 ID 映射工作流程已建立。

建立 ID 映射工作流程之後，您就可以[執行 ID 映射工作流程](run-id-mapping-workflow.md)。