| page_title | dbtcloud_bigquery_semantic_layer_credential Resource - dbtcloud |
|---|---|
| subcategory | |
| description | BigQuery credential resource. This resource is composed of a BigQuery credential and a Semantic Layer configuration. It is used to create a BigQuery credential for the Semantic Layer. |
BigQuery credential resource. This resource is composed of a BigQuery credential and a Semantic Layer configuration. It is used to create a BigQuery credential for the Semantic Layer.
resource "dbtcloud_bigquery_semantic_layer_credential" "example" {
configuration = {
project_id = var.project_id
name = "BigQuery SL Credential"
adapter_version = "bigquery_v0"
}
credential = {
project_id = var.project_id
is_active = true
num_threads = var.num_threads
dataset = var.dataset
}
private_key_id = var.private_key_id
private_key = var.private_key
client_email = var.client_email
client_id = var.client_id
auth_uri = var.auth_uri
token_uri = var.token_uri
auth_provider_x509_cert_url = var.auth_provider_x509_cert_url
client_x509_cert_url = var.client_x509_cert_url
}auth_provider_x509_cert_url(String) Auth Provider X509 Cert URL for the Service Accountauth_uri(String) Auth URI for the Service Accountclient_email(String) Service Account emailclient_id(String) Client ID of the Service Accountclient_x509_cert_url(String) Client X509 Cert URL for the Service Accountconfiguration(Attributes) Semantic Layer credential configuration details. (see below for nested schema)credential(Attributes) BigQuery credential details, but used in the context of the Semantic Layer. (see below for nested schema)private_key_id(String) Private Key ID for the Service Accounttoken_uri(String) Token URI for the Service Account
execution_project(String) The GCP project that should execute BigQuery jobs for the semantic layer. When not set, jobs will execute in the project associated with the service account.private_key(String, Sensitive) Private Key for the Service Account. Consider usingprivate_key_woinstead, which is not stored in state.private_key_wo(String) Write-only alternative toprivate_key. The value is not stored in state. Requiresprivate_key_wo_versionto trigger updates.private_key_wo_version(Number) Version number forprivate_key_wo. Increment this value to trigger an update of the private key when usingprivate_key_wo.resource_metadata(Dynamic) Metadata for tracking resource identity during account migrations. Stored in Terraform state only and not sent to the API.
id(Number) The ID of the credential
Required:
adapter_version(String) The adapter versionname(String) The name of the configurationproject_id(Number) The ID of the project
Required:
dataset(String) Default dataset namenum_threads(Number) Number of threads to useproject_id(Number) Project ID to create the BigQuery credential in
Optional:
connection_id(Number) The ID of the global connection to use for this credential. When provided, the credential will automatically use the correct adapter version based on the connection's configuration (e.g., bigquery_v1 for connections with use_latest_adapter=true).is_active(Boolean) Whether the BigQuery credential is activeresource_metadata(Dynamic) Metadata for tracking resource identity during account migrations. Stored in Terraform state only and not sent to the API.
Read-Only:
credential_id(Number) The internal credential IDid(String) The ID of this resource. Contains the project ID and the credential ID.