Skip to main content

warehouse_config

Creates, updates, deletes, gets or lists a warehouse_config resource.

Overview

Namewarehouse_config
TypeResource
Iddatabricks_workspace.dbsql.warehouse_config

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
channelobject
config_paramobject
data_access_configarray
enabled_warehouse_typesarray
global_paramobject
google_service_accountstring
instance_profile_arnstring
security_policystring
sql_configuration_parametersobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getworkspacewarehouseconfigselectdeployment_nameGets the workspace level configuration that is shared by all SQL warehouses in a workspace.
setworkspacewarehouseconfigreplacedeployment_nameSets the workspace level configuration that is shared by all SQL warehouses in a workspace.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)

SELECT examples

Gets the workspace level configuration that is shared by all SQL warehouses in a workspace.

SELECT
channel,
config_param,
data_access_config,
enabled_warehouse_types,
global_param,
google_service_account,
instance_profile_arn,
security_policy,
sql_configuration_parameters
FROM databricks_workspace.dbsql.warehouse_config
WHERE deployment_name = '{{ deployment_name }}' -- required;

REPLACE examples

Sets the workspace level configuration that is shared by all SQL warehouses in a workspace.

REPLACE databricks_workspace.dbsql.warehouse_config
SET
data__security_policy = '{{ security_policy }}',
data__instance_profile_arn = '{{ instance_profile_arn }}',
data__google_service_account = '{{ google_service_account }}',
data__data_access_config = '{{ data_access_config }}',
data__channel = '{{ channel }}',
data__global_param = '{{ global_param }}',
data__config_param = '{{ config_param }}',
data__sql_configuration_parameters = '{{ sql_configuration_parameters }}',
data__enabled_warehouse_types = '{{ enabled_warehouse_types }}'
WHERE
deployment_name = '{{ deployment_name }}' --required;