Skip to content

Latest commit

 

History

History
95 lines (71 loc) · 3.97 KB

File metadata and controls

95 lines (71 loc) · 3.97 KB
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.

dbtcloud_bigquery_semantic_layer_credential (Resource)

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.

Example Usage

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
  
}

Schema

Required

  • auth_provider_x509_cert_url (String) Auth Provider X509 Cert URL for the Service Account
  • auth_uri (String) Auth URI for the Service Account
  • client_email (String) Service Account email
  • client_id (String) Client ID of the Service Account
  • client_x509_cert_url (String) Client X509 Cert URL for the Service Account
  • configuration (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 Account
  • token_uri (String) Token URI for the Service Account

Optional

  • 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 using private_key_wo instead, which is not stored in state.
  • private_key_wo (String) Write-only alternative to private_key. The value is not stored in state. Requires private_key_wo_version to trigger updates.
  • private_key_wo_version (Number) Version number for private_key_wo. Increment this value to trigger an update of the private key when using private_key_wo.
  • resource_metadata (Dynamic) Metadata for tracking resource identity during account migrations. Stored in Terraform state only and not sent to the API.

Read-Only

  • id (Number) The ID of the credential

Nested Schema for configuration

Required:

  • adapter_version (String) The adapter version
  • name (String) The name of the configuration
  • project_id (Number) The ID of the project

Nested Schema for credential

Required:

  • dataset (String) Default dataset name
  • num_threads (Number) Number of threads to use
  • project_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 active
  • resource_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 ID
  • id (String) The ID of this resource. Contains the project ID and the credential ID.