Open slideroh opened 1 month ago
Actually Im super suprised because I've checked many versions: like
and finally 1.0.0 which worked...
# databricks_storage_credential.main_test will be created
+ resource "databricks_storage_credential" "main_test" {
+ id = (known after apply)
+ metastore_id = (known after apply)
+ name = "test"
+ owner = (known after apply)
+ azure_managed_identity {
+ access_connector_id = "/subscriptions/<snip>/resourceGroups/databricks/providers/Microsoft.Databricks/accessConnectors/test-connector"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
databricks_storage_credential.main_test: Creating... databricks_storage_credential.main_test: Creation complete after 3s [id=test]
but I would like to use the latest one, not 2 years old version. What changed here? The config of resource is the same.
@slideroh it seems we are experiencing the same issue. Creating the storage credential via the Workspace UI works though. And I am pretty confident that creating it using Terraform (version 1.47.0) also worked a few weeks ago still. So I would say maybe the API is broken ? I mean that it what the Server 500 error suggests, right ?
quick update @slideroh : I got this to work after making my user a Databricks account admin. Then the Terraform way worked. Really strange though because on the workspace UI it also works without being Databricks account admin.
Configuration
Expected Behavior
Terraform should return error with message or create a Storage Credential. I'd like to mention here, that when I passed the same access_connector_id and similar name manually in Databricks Workspace, the storage credential was created without any issues. ### Actual BehaviorIn
TF_LOG=DEBUG
In normal run;
There is basically no error, there is only 500 Internal Server Error. I'd like also mention that other resource, like secret-scope I'm able to create via the same config, just different resource.
Steps to Reproduce
terraform apply
Terraform and provider versions
Is it a regression?
Checked previous version of provider, error stil exists
Debug Output
https://gist.github.com/slideroh/a40b0ec61eb4f90d2ad19a49baaa98fb
Important Factoids
Would you like to implement a fix?