Closed NicholasFiorentini closed 3 weeks ago
I tested it with 1.52
, and the plan works. This looks like a regression introduced by 1.53
. Possibly due to this change?
databricks = {
source = "databricks/databricks"
version = "< 1.53"
}
Definitely is caused by that. The IDs for this resource are a bit weird, especially for the SQL endpoints. I assumed that the ID always began with /sql/warehouses
but apparently sometimes it starts with just /warehouses
. I should have a fix ready for this by this afternoon.
Thank you very much @mgyucht
Thanks @mgyucht for the PR! Really appreciated! Do you know when it will be released?
Nevermind, just saw it.
Confirmed as fixed.
Configuration
Expected Behavior
The plan should not fail.
Actual Behavior
Terraform plan fails with
Steps to Reproduce
terraform plan
Terraform and provider versions
Is it a regression?
This configuration has been working fine since we last applied a plan in this workspace (15 days ago). We haven't changed any configuration; the token is valid and associated with a service account in the admin group.
The SQL endpoint is visible from Databricks UI and starts correctly. The ID is the same as the one reported in the error.
Debug Output
To be provided.
Important Factoids
This fails for both "classic" and "serverless" SQL endpoints in two different workspaces.
Output of
databricks warehouses list -o json
:Output for
databricks warehouses get-permissions ***
:Would you like to implement a fix?
No