本頁說明如何建立 Google Cloud 專案、啟用 AML AI、建立驗證憑證,以及授予帳戶一或多個身分與存取權管理角色。
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
Install the Google Cloud CLI.
-
如果您使用外部識別資訊提供者 (IdP),請先 使用聯合身分登入 gcloud CLI。
-
如要初始化 gcloud CLI,請執行下列指令:
gcloud init
-
Create or select a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Create a Google Cloud project:
gcloud projects create PROJECT_ID
Replace
PROJECT_ID
with a name for the Google Cloud project you are creating. -
Select the Google Cloud project that you created:
gcloud config set project PROJECT_ID
Replace
PROJECT_ID
with your Google Cloud project name.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the required APIs:
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin
), which contains theserviceusage.services.enable
permission. Learn how to grant roles.gcloud services enable financialservices.googleapis.com
bigquery.googleapis.com cloudkms.googleapis.com -
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
-
Grant roles to your user account. Run the following command once for each of the following IAM roles:
roles/financialservices.admin, roles/cloudkms.admin, roles/bigquery.admin
gcloud projects add-iam-policy-binding PROJECT_ID --member="user:USER_IDENTIFIER" --role=ROLE
Replace the following:
PROJECT_ID
: your project ID.USER_IDENTIFIER
: the identifier for your user account—for example,myemail@example.com
.ROLE
: the IAM role that you grant to your user account.
-
Install the Google Cloud CLI.
-
如果您使用外部識別資訊提供者 (IdP),請先 使用聯合身分登入 gcloud CLI。
-
如要初始化 gcloud CLI,請執行下列指令:
gcloud init
-
Create or select a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator
(
roles/resourcemanager.projectCreator
), which contains theresourcemanager.projects.create
permission. Learn how to grant roles.
-
Create a Google Cloud project:
gcloud projects create PROJECT_ID
Replace
PROJECT_ID
with a name for the Google Cloud project you are creating. -
Select the Google Cloud project that you created:
gcloud config set project PROJECT_ID
Replace
PROJECT_ID
with your Google Cloud project name.
-
Verify that billing is enabled for your Google Cloud project.
-
Enable the required APIs:
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin
), which contains theserviceusage.services.enable
permission. Learn how to grant roles.gcloud services enable financialservices.googleapis.com
bigquery.googleapis.com cloudkms.googleapis.com -
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
If an authentication error is returned, and you are using an external identity provider (IdP), confirm that you have signed in to the gcloud CLI with your federated identity.
-
Grant roles to your user account. Run the following command once for each of the following IAM roles:
roles/financialservices.admin, roles/cloudkms.admin, roles/bigquery.admin
gcloud projects add-iam-policy-binding PROJECT_ID --member="user:USER_IDENTIFIER" --role=ROLE
Replace the following:
PROJECT_ID
: your project ID.USER_IDENTIFIER
: the identifier for your user account—for example,myemail@example.com
.ROLE
: the IAM role that you grant to your user account.
所需權限
您必須具備下列權限,才能完成快速入門,並在 AML AI 中執行許多重要作業。
權限 | 說明 |
---|---|
resourcemanager.projects.get | 取得 Google Cloud 專案 |
resourcemanager.projects.list | 列出 Google Cloud 專案 |
cloudkms.keyRings.create | 建立 Cloud KMS 金鑰環 |
cloudkms.cryptoKeys.create | 建立 Cloud KMS 金鑰 |
financialservices.v1instances.create | 建立 AML AI 執行個體 |
financialservices.operations.get | 取得 AML AI 作業 |
cloudkms.cryptoKeys.getIamPolicy | 取得 Cloud KMS 金鑰的身分與存取權管理政策 |
cloudkms.cryptoKeys.setIamPolicy | 設定 Cloud KMS 金鑰的身分與存取權管理政策 |
bigquery.datasets.create | 建立 BigQuery 資料集 |
bigquery.datasets.get | 取得 BigQuery 資料集 |
bigquery.transfers.get | 取得 BigQuery 資料移轉服務移轉作業 |
bigquery.transfers.update | 建立或刪除 BigQuery 資料移轉服務移轉作業 |
bigquery.datasets.setIamPolicy | 設定 BigQuery 資料集的 IAM 政策 |
bigquery.datasets.update | 更新 BigQuery 資料集 |
financialservices.v1datasets.create | 建立 AML AI 資料集 |
financialservices.v1engineconfigs.create | 建立 AML AI 引擎設定 |
financialservices.v1models.create | 建立 AML AI 模型 |
financialservices.v1backtests.create | 建立 AML AI 回溯測試結果 |
financialservices.v1backtests.exportMetadata | 從 AML AI 回溯測試結果匯出中繼資料 |
financialservices.v1instances.importRegisteredParties | 將已註冊的當事人匯入 AML AI 執行個體 |
financialservices.v1predictions.create | 建立 AML AI 預測結果 |
bigquery.jobs.create | 建立 BigQuery 工作 |
bigquery.tables.getData | 從 BigQuery 資料表取得資料 |
financialservices.v1predictions.delete | 刪除 AML AI 預測結果 |
financialservices.v1backtests.delete | 刪除 AML AI 回溯測試結果 |
financialservices.v1models.delete | 刪除 AML AI 模型 |
financialservices.v1engineconfigs.delete | 刪除 AML AI 引擎設定 |
financialservices.v1datasets.delete | 刪除 AML AI 資料集 |
financialservices.v1instances.delete | 刪除 AML AI 執行個體 |
bigquery.datasets.delete | 刪除 BigQuery 資料集 |