Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] Issue with databricks_sql_endpoint resource ("CLASSIC" type) #4496

Open
LittleWat opened this issue Feb 13, 2025 · 0 comments
Open

Comments

@LittleWat
Copy link
Contributor

LittleWat commented Feb 13, 2025

Configuration

We just want to deploy the "CLASSIC" sql warehouse by running terraform apply the following:

resource "databricks_sql_endpoint" "this" {
  provider                  = databricks.workspace
  name                      = "${var.databricks_workspace_name}-default-sql"
  cluster_size              = "2X-Small"
  auto_stop_mins            = 10
  enable_serverless_compute = "false"
  warehouse_type            = "CLASSIC"
}

Expected Behavior

The "CLASSIC" sql warehouse is created normally. ("Serverless" SQL warehouse can be created normally.)

Actual Behavior

1st apply fails after 20 mins:

  ╷
  │ Error: cannot create sql endpoint: failed waiting for warehouse to start: timed out: Clusters are failing to launch. Cluster launch will be retried.
  │ 
  │   with databricks_sql_endpoint.this,
  │   on main.tf line 1, in resource "databricks_sql_endpoint" "this":1: resource "databricks_sql_endpoint" "this" {
  │ 

2nd apply fails with the following error:

 ╷
 │ Error: cannot create sql endpoint: failed creating warehouse: SQL warehouse with name `<my-workspace>-default-sql` already exists
 │ 
 │   with databricks_sql_endpoint.this,
 │   on main.tf line 1, in resource "databricks_sql_endpoint" "this":
 │    1: resource "databricks_sql_endpoint" "this" {
 │ 

Steps to Reproduce

just run terraform apply for the TF file above.

Terraform and provider versions

  • 1.65.1

Is it a regression?

Debug Output

Important Factoids

Would you like to implement a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant