Google Spanner コネクタを追加
Google Spanner への認証
After you add the connector, you need to set the required properties.- Instance Id: Enter the identifier (Id) of the Google Spanner instance to which you want to connect.
- Database: Enter the name of the Google Spanner database to which you want to connect.
- Project Id: Enter the project Id of the project where your Google Spanner instance resides.
OAuth
OAuth JWT
GCP Instance Account
AWS Workload Identity
AWS Workload Identity フェデレーション資格情報で接続するには、次のプロパティを設定します:
- Auth Scheme:AWSWorkloadIdentity を選択。
- AWS Workload Identity Config:以下の例のように、セミコロン区切りの
Key=Valueプロパティのリストを入力:AWSWorkloadIdentityConfig="AuthScheme=AwsRootKeys;AccessKey='AKIAABCDEF123456';SecretKey=...;Region=us-east-1"値を引用符で囲むかどうかは任意です。
- Workload Pool Id:Workload Identity Federation プールの識別子(Id)を入力。
- Workload Project Id:Workload Identity Federation プールをホストするGoogle Cloud プロジェクトのId を入力。
- Workload Provider Id:Workload Identity Federation プールプロバイダーのId を入力。
Azure Workload Identity
PingFederate 経由のシングルサインオンで接続するには、次のプロパティを設定します:
- Auth Scheme:AzureWorkloadIdentity を選択。
- Azure Workload Identity Config:以下の例のように、セミコロン区切りの
Key=Valueプロパティのリストを入力:AzureWorkloadIdentityConfig="AuthScheme=AzureServicePrincipal;AzureTenant=directory (tenant) id;OAuthClientID=application (client) id;OAuthClientSecret=client secret;AzureResource=application id uri;"値を引用符で囲むかどうかは任意です。
- Workload Pool Id:Workload Identity Federation プールの識別子(Id)を入力。
- Workload Project Id:Workload Identity Federation プールをホストするGoogle Cloud プロジェクトのId を入力。
接続を完了する
To complete your connection:- Specify the following properties:
- Database Dialect: Select the dialect type for the Google Spanner database. The default dialect is GoogleStandardSQL.
- (Optional) Database: Enter the name of the Google Spanner database to which you want to connect. If you leave this field blank, Sync attempts to expose all databases in the instance as separate catalogs. If you want to access multiple databases, ensure that the following OAuth scopes are configured:
- Define advanced connection settings on the Advanced tab. (In most cases, though, you should not need these settings.)
- Connect to Google Spanner to connect to your Google Spanner account.
- Click Create & Test to create your connection.