如何使用 Amazon AppFlow 將資料從我的 Salesforce 帳戶載入至 Amazon Redshift?

2 分的閱讀內容
0

我想從我的 Salesforce 帳戶中擷取資料並將其載入至 Amazon Redshift。

簡短說明

如要從您的 Salesforce 帳戶擷取資料並將其載入 Amazon Redshift,您必須執行下列作業:

  1. 允許 Salesforce 版本提供 Amazon AppFlow 的 API 存取權。
  2. 請檢查您的 Salesforce 帳戶是否符合將資料載入 Amazon Redshift 的要求
  3. 視需求執行 Amazon AppFlow,以測試端對端的連線和流程。

注意:如要將您的 Salesforce 資料載入 Amazon Redshift,Amazon Redshift 必須具有一個公共安全群組。

解決方式

  1. 登入您的 Salesforce 帳戶。
  2. 選擇 Setup (設定),然後在搜尋視窗中輸入 Company Information (公司資訊)。
  3. 在組織版本之下,記錄您正在使用的 Salesforce 版本。**注意:**Salesforce 企業版、無限制版、開發人員和效能版本提供 API 存取權,但專業版和基本版則不提供 API 存取權。在繼續之前,請查看哪些版本提供 API 存取權限的最新資訊
  4. 在導覽窗格中,選擇 Users (使用者),然後選擇 Profiles (設定檔)。
  5. 選擇 System administrator (系統管理員),然後選擇 System Administrator (系統管理員) 連結。
  6. 在下一頁的 Administrative Permissions (管理權限) 下,選取 API enabled (已啟用 API) 的核取方塊。
  7. 登入 Amazon AppFlow console (Amazon AppFlow 主控台),然後選擇 Create flow (建立流程)。
  8. Flow details (流程詳細資訊) 下,輸入流程的名稱和說明。
  9. Source name (來源名稱) 下,鍵入 Salesforce,然後在 Choose Salesforce connection (選擇 Salesforce 連線) 之下,選擇 Create new connection (建立新連線)。
  10. Salesforce environment (Salesforce 環境) 下,選擇 Production (生產),然後輸入連線的名稱。
  11. 選擇 Continue (繼續)。這會開啟 Salesforce 登入頁面。請輸入您的使用者 ID 和密碼以繼續。在您登入並允許存取之後,就會建立從 Amazon AppFlow 至 Salesforce 的連線。
  12. 在 Salesforce 中的 Configure flow (設定流程) 頁面上,選擇您要遷移的物件。
  13. Destination details (目標詳細資料) 區段中,搜尋 Destination name (目標名稱),然後選擇 Amazon Redshift
  14. New connection (新的連線) 之下,選擇 Create new connection (建立新連線)。
  15. Connect to Amazon Redshift ( 連線至 Amazon Redshift) 頁面上,輸入您 Amazon Redshift 連線的詳細資料。請確保 Amazon Redshift 具有一個公共安全群組。
  16. 將此 AWS Key Management Service (KMS) 解密政策附加至適用於 Amazon Redshift 的 AWS Identity and Access Management (IAM) 角色:
{    "Effect": "Allow",
    "Action": "kms:Decrypt",
    "Resource": "*" }
  • 選擇您希望 Amazon AppFlow 在將資料遷移至 Amazon Redshift 時使用的 Amazon Simple Storage Service (Amazon S3) 儲存貯體。

  • Choose Amazon Redshift object (選擇 Amazon Redshift 物件)下,輸入 Amazon Redshift 結構描述名稱。然後,在 Choose Redshift table (選擇 Redshift 表格) 之下,輸入 Amazon Redshift 表格名稱。

  • Error handling (錯誤處理) 之下,選擇在問題停止將記錄寫入目標時要寫入記錄的 Amazon S3 儲存貯體。

  • Map data fields (對映資料欄位) 頁面上,選擇要從目標遷移至來源的物件欄位。然後,選擇 Map fields (對應欄位)。

  • 檢閱所有詳細資料,然後選擇 Run flow (執行流程)。

  • 執行流程後,請檢查目標資料表中的記錄。


相關資訊

什麼是 Amazon AppFlow?

支援的來源和目標應用程式

AWS 官方
AWS 官方已更新 1 年前