Hi All
I'm trying to create a Databricks SQL Endpoint using Terraform with the following resource configuration:
resource "databricks_sql_endpoint" "dataproduct_sql_endpoint" {
provider = databricks.workspace
name = local.sql_name
cluster_size = var.cluster_size
max_num_clusters = var.max_num_clusters
min_num_clusters = var.min_num_clusters
auto_stop_mins = var.auto_stop_mins
enable_serverless_compute = true
}
I'm using a service principal that has the necessary permissions. Interestingly, I can successfully create the same SQL endpoint using the Databricks REST API, authenticated with the same service principal.
However, when attempting to create the endpoint via Terraform, I receive the following error:
Error: cannot create sql endpoint: failed waiting for warehouse to start: timed out: Clusters are failing to launch. Cluster launch will be retried.
I upgraded the Databricks provider version, but it's still not working
Does anyone know what might be causing the difference in behavior between the Terraform provider and direct API usage?
Any help would be appreciated.