このドキュメントでは、 Cloud de Confiance by S3NS プロジェクトと Compute Engine 仮想マシン(VM)を設定する方法について説明します。
Cloud de Confiance by S3NS プロジェクトを設定する
-
In the Cloud de Confiance console, on the project selector page, select or create a Cloud de Confiance 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 role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Cloud de Confiance project.
Enable the Google Cloud Dataproc API, if it is not already enabled.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.-
Install the Google Cloud CLI.
-
Configure the gcloud CLI to use your federated identity.
For more information, see Sign in to the gcloud CLI with your federated identity.
-
To initialize the gcloud CLI, run the following command:
gcloud init
認証情報の必要性について:認証情報が必要になるのは、アプリケーションやブラウザから直接 Managed Service for Apache Spark API を呼び出すことができるようにする場合のみです。 Cloud de Confiance コンソールまたは Google Cloud CLI を使用してクラスタを作成、管理し、ジョブを送信する場合は、gcloud init コマンドを使用して SDK にログインするだけで済みます。
省略可: VM を設定する
Compute Engine 仮想マシン(VM)インスタンスから gcloud CLI を実行する場合は、 Cloud de Confiance by S3NS サービスにアクセスするようにこの VM を設定する必要があります。
VM が正しく設定されているかどうかをテストするには、gcloud compute instances describe YOUR_VM_INSTANCE_NAME をコマンドラインから実行します。https://www.googleapis.com/auth/cloud-platform スコープを含むサービス アカウントが一覧表示される必要があります。VM を設定する方法について詳しくは、ユーザー管理のサービス アカウントを使用する VM を作成するをご覧ください。