メインコンテンツまでスキップ

Google Cloud ID認証

Google Cloud ID 認証

Google Cloud ID 認証では、Google Cloud CLI を使用して、対象の Google Cloud サービス アカウントを認証します。

Google Cloud 認証情報認証を使用する準備をするには、 Google Cloud ID 認証の設定と使用をご覧ください。

Databricks で Google Cloud ID 認証を構成するには、 Google Cloud ID 認証 がローカルにインストールされている必要があります。 また、次の関連する環境変数 ( .databrickscfg フィールド、Terraform フィールド、または Config フィールド) も設定する必要があります。

  • Databricksホスト

    • アカウント操作の場合は、https://accounts.gcp.databricks.com を指定します。
    • ワークスペース操作の場合は、 ワークスペースの URL を指定します (例: https://1234567890123456.7.gcp.databricks.com)。
  • アカウント操作の場合、Databricks アカウント ID

  • Google Cloud サービス アカウントは、サービス アカウントの Eメール アドレスとして指定されます。

Databricks で Google Cloud ID 認証を実行するには、参加しているツールまたは SDK に基づいて、コード内に以下を統合します。

To use environment variables for a specific Databricks authentication type with a tool or SDK, see Authorizing access to Databricks resources or the tool’s or SDK’s documentation. See also Environment variables and fields for client unified authentication and the Default methods for client unified authentication.

For account-level operations, set the following environment variables:

  • DATABRICKS_HOST, set to the value of your Databricks account console URL, https://accounts.gcp.databricks.com.
  • DATABRICKS_ACCOUNT_ID
  • GOOGLE_SERVICE_ACCOUNT

For workspace-level operations, set the following environment variables:

  • DATABRICKS_HOST, set to the value of your Databricks workspace URL, for example https://1234567890123456.7.gcp.databricks.com.
  • GOOGLE_SERVICE_ACCOUNT