subcategory |
---|
Compute |
-> Note If you have a fully automated setup with workspaces created by databricks_mws_workspaces or azurerm_databricks_workspace, please make sure to add depends_on attribute in order to prevent default auth: cannot configure default credentials errors.
Retrieves information about databricks_instance_pool.
Referring to an instance pool by name:
data "databricks_instance_pool" "pool" {
name = "All spot"
}
resource "databricks_cluster" "my_cluster" {
instance_pool_id = data.databricks_instance_pool.pool.id
# ...
}
Data source allows you to pick instance pool by the following attribute
name
- Name of the instance pool. The instance pool must exist before this resource can be planned.
Data source exposes the following attributes:
id
- The id of the instance pool.pool_info
- block describing instance pool and its state. Check documentation for databricks_instance_pool for a list of exposed attributes.